ASP.NET和XHTML [英] ASP.NET and XHTML

查看:47
本文介绍了ASP.NET和XHTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

微软如何坐在w3c上,参与XHTML

标准化,然后完全错过了使用asp.net的球?


Microsoft有任何计划/公告/关注制作

asp.net生成有效的XHTML?看起来这些变化对他们来说相当简单,比我编写过滤器更容易

和/或覆盖必要的类。 />

~PJ

How is it that Microsoft sits on the w3c, participates in XHTML
standardization and then completely misses the ball with asp.net?

Does Microsoft have any plans/announcements/concern whatsover with making
asp.net generate valid XHTML? It seems like these changes would be fairly
trivial for them, much easier than it would be for me to write a filter
and/or override the necessary classes.

~PJ


推荐答案

" PJ" < PJ *** @ hotmail.com>在消息中写道

新闻:O6 ************** @ TK2MSFTNGP11.phx.gbl ...
"PJ" <pj***@hotmail.com> wrote in message
news:O6**************@TK2MSFTNGP11.phx.gbl...
微软怎么样?坐在w3c上,参与XHTML
标准化然后完全错过了asp.net的球吗?

微软是否有任何计划/公告/关注制作
asp的方法。 net生成有效的XHTML?看起来这些变化对他们来说相当简单,比编写过滤器和/或覆盖必要的类更容易。
How is it that Microsoft sits on the w3c, participates in XHTML
standardization and then completely misses the ball with asp.net?

Does Microsoft have any plans/announcements/concern whatsover with making
asp.net generate valid XHTML? It seems like these changes would be fairly
trivial for them, much easier than it would be for me to write a filter
and/or override the necessary classes.



XHTML何时成为最终版?

-

John Saunders

互联网工程师
jo *********** @ surfcontrol.com


你担心微软已经放弃了XHTML上的球,因为......?


" PJ" < PJ *** @ hotmail.com>在消息中写道

新闻:O6 ************** @ TK2MSFTNGP11.phx.gbl ...
And you are worried that microsoft has dropped the ball on XHTML because...?

"PJ" <pj***@hotmail.com> wrote in message
news:O6**************@TK2MSFTNGP11.phx.gbl...
微软怎么样?坐在w3c上,参与XHTML
标准化然后完全错过了asp.net的球吗?

微软是否有任何计划/公告/关注制作
asp的方法。 net生成有效的XHTML?看起来这些变化对他们来说相当简单,比我编写过滤器和/或覆盖必要的类更容易。

~PJ
How is it that Microsoft sits on the w3c, participates in XHTML
standardization and then completely misses the ball with asp.net?

Does Microsoft have any plans/announcements/concern whatsover with making
asp.net generate valid XHTML? It seems like these changes would be fairly
trivial for them, much easier than it would be for me to write a filter
and/or override the necessary classes.

~PJ



访问 http://validator.w3.org/file-upload.html 并尝试验证从任何一个asp.net页面到xhtml的

标记1.0(严格或

过渡期)。事实上,我打赌你会有一段非常艰难的时间,甚至还要花一个时间来正确地验证HTML 4.01严格。


我需要列举一下你的缺点?显然是这样。在提出这些问题之前,请自行教育




- 隐藏的输入无效作为表格标签的直接子项。它们必须在另一个包含元素(div,span等)中包含



- < script>标签必须包含类型属性(type =" text / javascript")。

< script> asp.net生成的标签不包含此属性。

- 元素上的id属性不能以下划线开头(如

__EVENTTARGET,__ EVENTARGUMENT,__ CopyrightSTATE)。

- name不是有效的属性(如在写入

主表单的name属性中。这也使asp.net的非DOM javascript无效

生成。

- 脚本必须包含在CDATA部分中

- < img runat =" server"标签会自动添加border属性

无效。

- ...


对于我来说,作为开发人员来说,这要困难得多我作为一个开发人员难以编写一个过滤器来对输出进行所有必要的更改,

输入然后它就是MS只需修改asp.net引擎为开发人员选择的架构提供有效的

标记。


" Alvin Bruney"< vapordan_spam_me_not @ hotmail_no_spam hotmail.com>写在

消息新闻:嗯************** @ TK2MSFTNGP10.phx.gbl ...
Visit http://validator.w3.org/file-upload.html and try to validate the
markup from any one of your asp.net pages to xhtml 1.0 ( strict or
transitional ). Matter in fact, I bet you''d have a very tough time even
getting one to validate properly to HTML 4.01 Strict.

Do I need to enumerate shortcomings for you? Apparently so. Please educate
yourself before asking such questions.

- Hidden inputs are not valid as a direct child of a form tag. They must be
contained w/in another containing element (div, span, etc).
- <script> tags must contain a type attribute ( type="text/javascript").
The <script> tags that asp.net generates do not contain this attribute.
- id attributes on elements cannot begin with underscores ( as in
__EVENTTARGET, __EVENTARGUMENT, __VIEWSTATE ).
- name is not a valid attribute ( as in the name attribute written to the
main form. this also invalidates the non DOM javascript that asp.net
generates.
- script must be contained w/ in a CDATA section
- <img runat="server" tags will automatically add a "border" attribute which
is not valid.
- ...

It''s much more difficult for me as a developer to difficult for me as a
developer to write a filter to make all the necessary changes to the output,
input then it is for MS to simply modify the asp.net engine to render valid
markup for the developers chosen schema.

"Alvin Bruney" <vapordan_spam_me_not@hotmail_no_spamhotmail.com > wrote in
message news:um**************@TK2MSFTNGP10.phx.gbl...
你担心的是微软已经将球丢弃在XHTML
上因为......?
And you are worried that microsoft has dropped the ball on XHTML because...?



这篇关于ASP.NET和XHTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆