Just been going through the atlas tutorials... I have noticed that the rendered output shows tags such the ones below: (See below example)
This of course doesn't conform to XHTML standard such as XHTML 1.0 STrict can anyone suggest what can be done about this? Has anyone been able to validate their pages?
I realised it is technically XHTML valid but the problem is that when I try against the validator it fails ... so in terms of checking for validaiton what can be done? Does this mean we can't validate with an Atlas project? Anyone know of a good XHTML Validator
tha can ignore javascript?
I'm not too sure what you mean since I'm new to XHTML could you give me an example of what you mean? Also the code is generated by microsoft when it renders the page do you mean override the render mode so that u can wrap a CDATA tag around the script tag?
I tried wrapping CDATA and comments around the necessary tags, although this helped with validatiing against the W3C validator, a more serious problem occurred that when the comments or CDATA was included the actual ajax stopped funcitoning because it caused
a script error since
<script type="text/xml"> doesn't accept a CDATA tag or <!-- inside it, so that's another problem so not sure what else do to. The only thing I was able to do was to create a render method that will detect when it's w3c and insert the CDATA or <!-- comment
tag else just keep it rendered the way it is. I'm not sure how else to fix this techincally as Scott said it is valid to have a script tag with stuff inside but W3C validator treats this as "normal" XHTML tags which is a problem
dotnetshadow
Member
50 Points
10 Posts
Atlas and XHTML compliant?
Mar 23, 2006 11:50 PM|LINK
Just been going through the atlas tutorials... I have noticed that the rendered output shows tags such the ones below: (See below example)
This of course doesn't conform to XHTML standard such as XHTML 1.0 STrict can anyone suggest what can be done about this? Has anyone been able to validate their pages?
Regards Dotnetshadow
EXAMPLE:
========
<script type="text/xml-script">
<page xmlns:script="http://schemas.microsoft.com/xml-script/2005">
<components>
<pageRequestManager id="_PageRequestManager" updatePanelIDs="ctl00$ContentPlaceHolder1$p1,ctl00$ContentPlaceHolder1$p2" asyncPostbackControlIDs="ctl00_ContentPlaceHolder1_DropDownList1" scriptManagerID="ctl00$ContentPlaceHolder1$s1" form="aspnetForm" />
<control id="ctl00_ContentPlaceHolder1_progress1" visibilityMode="Collapse">
<bindings>
<binding dataContext="_PageRequestManager" dataPath="inPostBack" property="visible" />
</bindings>
</control>
</components>
</page></script>
<script type="text/javascript">
</script>
ScottGu
All-Star
18295 Points
2008 Posts
Microsoft
Moderator
Re: Atlas and XHTML compliant?
Mar 24, 2006 02:53 AM|LINK
Actually that technically is XHTML valid -- since the contents of the <script> tag are technically ignored by the browser.
Hope this helps,
Scott
dotnetshadow
Member
50 Points
10 Posts
Re: Atlas and XHTML compliant?
Mar 24, 2006 03:09 AM|LINK
I realised it is technically XHTML valid but the problem is that when I try against the validator it fails ... so in terms of checking for validaiton what can be done? Does this mean we can't validate with an Atlas project? Anyone know of a good XHTML Validator tha can ignore javascript?
Regards DotnetShadow
dotnetshadow
Member
50 Points
10 Posts
Re: Atlas and XHTML compliant?
Mar 24, 2006 03:23 AM|LINK
<!--
// -->
<script type="text/xml-script">
<!--
<page xmlns:script="http://schemas.microsoft.com/xml-script/2005">
<components>
<pageRequestManager id="_PageRequestManager" updatePanelIDs="ctl00$ContentPlaceHolder1$p1,ctl00$ContentPlaceHolder1$p2" asyncPostbackControlIDs="ctl00_ContentPlaceHolder1_DropDownList1" scriptManagerID="ctl00$ContentPlaceHolder1$s1" form="aspnetForm" />
<control id="ctl00_ContentPlaceHolder1_progress1" visibilityMode="Collapse">
<bindings>
<binding dataContext="_PageRequestManager" dataPath="inPostBack" property="visible" />
</bindings>
</control>
</components>
</page>
// -->
</script>
I tried this and it validates now how do I put the comments in mmmm,....
Regards Dotnetshadow
<div style="border: 0pt none ; margin: 2px 0px; padding: 0pt; background: rgb(195, 217, 255) none repeat scroll 0%; display: none; font-family: serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 100%; line-height: normal; font-size-adjust: none; font-stretch: normal; position: absolute; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; text-align: left; text-indent: 0pt; text-transform: none; color: rgb(0, 0, 0); text-decoration: none; cursor: default; z-index: 2147483647;" id="gtbspellmenu_8">validate
validity
validated
validates
gladiator
Edit...
Ignore all
Add to dictionary</div>
ScottGu
All-Star
18295 Points
2008 Posts
Microsoft
Moderator
Re: Atlas and XHTML compliant?
Mar 24, 2006 04:50 AM|LINK
dotnetshadow
Member
50 Points
10 Posts
Re: Atlas and XHTML compliant?
Mar 24, 2006 07:14 AM|LINK
Regards Dotnetshadow
ZAiNT
Member
94 Points
66 Posts
Re: Atlas and XHTML compliant?
Mar 27, 2006 03:11 AM|LINK
dotnetshadow
Member
50 Points
10 Posts
Re: Atlas and XHTML compliant?
Mar 28, 2006 02:00 AM|LINK
I tried wrapping CDATA and comments around the necessary tags, although this helped with validatiing against the W3C validator, a more serious problem occurred that when the comments or CDATA was included the actual ajax stopped funcitoning because it caused a script error since
<script type="text/xml"> doesn't accept a CDATA tag or <!-- inside it, so that's another problem so not sure what else do to. The only thing I was able to do was to create a render method that will detect when it's w3c and insert the CDATA or <!-- comment tag else just keep it rendered the way it is. I'm not sure how else to fix this techincally as Scott said it is valid to have a script tag with stuff inside but W3C validator treats this as "normal" XHTML tags which is a problem
Regards Dotnetshadow
DomenicDenic...
Member
37 Points
10 Posts
Re: Atlas and XHTML compliant?
Jul 03, 2006 09:01 PM|LINK
orphicfireba...
Member
485 Points
111 Posts
Re: Atlas and XHTML compliant?
Jul 03, 2006 09:22 PM|LINK