"Mike Gleason jr Couturier" <noreply@server .comwrote in message
news:uNV0iNuuIH A.1316@TK2MSFTN GP06.phx.gbl...
Hi,
>
I have the following code in my page :
<meta id="metaDescrip tion" runat="server" name="descripti on" content="" />
<meta id="metaKeyword s" runat="server" name="keywords" content="" />
>
That translates to (generated HTML) :
>
<meta id="ctl00_metaD escription" name="descripti on" content="Xyz" />
<meta id="ctl00_metaK eywords" name="keywords" content="Xyz" />
>
I have in my web.config the line :
<xhtmlConforman ce mode="Strict" />
>
And my doctype is as follow :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/2001/REC-xhtml11-20010531/DTD/xhtml11-flat.dtd">
>
My question is why do asp.net generates a <meta id=" if it is not strict
1.1?
>
I get the following error :
>
>
Validation Output: 1 Error
1.. Line 7, Column 86: there is no attribute "id".
.text/html; charset=UTF-8" /><meta id="ctl00_metaD escription"
name="descripti oThanks
>
>
>
>
I have the following code in my page :
<meta id="metaDescrip tion" runat="server" name="descripti on" content="" />
<meta id="metaKeyword s" runat="server" name="keywords" content="" />
>
That translates to (generated HTML) :
>
<meta id="ctl00_metaD escription" name="descripti on" content="Xyz" />
<meta id="ctl00_metaK eywords" name="keywords" content="Xyz" />
>
I have in my web.config the line :
<xhtmlConforman ce mode="Strict" />
>
And my doctype is as follow :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/2001/REC-xhtml11-20010531/DTD/xhtml11-flat.dtd">
>
My question is why do asp.net generates a <meta id=" if it is not strict
1.1?
>
I get the following error :
>
>
Validation Output: 1 Error
1.. Line 7, Column 86: there is no attribute "id".
.text/html; charset=UTF-8" /><meta id="ctl00_metaD escription"
name="descripti oThanks
>
>
>
It appears to be that my pages DOCTYPE must be XHTML 1.0 (not 1.1) since the
web.config directive "strict" means 1.0... not 1.1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Thanks anyway !