|
 |
aspx_professional thread: auto-postback <script> tag non W3C compliant
Message #1 by hadj_hadj@h... on Mon, 29 Jul 2002 10:45:43
|
|
Sorry, but no. I sent out similar replies to the newsgroup several times
but cannot locate my past email. Anyways, we ran into this in beta 2 and
the problem still exists. We are required by our client to validate as
XHTML Strict. The ASP.NET engine has two flaws here; it uses the
language attribute in it's own script tags and it uses the name
attribute in form tags. To be XHTML compliant, the language attribute
should be replaced by the type attribute and the name attribute should
be replaced in all occurrences by the id attribute.
Microsoft confirmed when we called that this is a bug in the engine. The
scary part was that the first few people there I talked to about this
were sure what XHTML was and didn't know who the W3C was. I got a tad
frustrated needing to explain these things to the tech.
For the time being, we have explained the situation with these two
validation problems to our client and are living with it. Sorry for the
bad news.
Now, the good news on this problem is that we are working on an output
filter for the ASP.NET engine to correct this problem. Once we have it
completed, I'll send it out to everyone. However, this issue is supposed
to be corrected in the next release or in a service pack.
-----Original Message-----
From: hadj_hadj@h... [mailto:hadj_hadj@h...]
Sent: Monday, July 29, 2002 10:46
To: ASPX_Professional
Subject: [aspx_professional] auto-postback <script> tag non W3C
compliant
Hello,
I am building aspx .NET pages, which I want/need to validate as XHTML
1.0
Transitional. Unfortunately, the automatic postback JavaScript function
which is output by asp.net does not include a type attribute, and thus
fails to validate. Is there anyway I can customize or override (ideally
on
a system.-wide global level) the way this function is output ?
Currently I get:
<script language="javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform = document._ctl1;
theform.__EVENTTARGET.value = eventTarget;
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>
What I would like is :
<script type="text/javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform = document._ctl1;
theform.__EVENTTARGET.value = eventTarget;
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>
Any help appreciated, thanks...
Hadj Ullelah
|
|
 |