"Mike Gleason jr Couturier" <> wrote in message
news:...
> Hi,
>
> I have the following code in my page :
> <meta id="metaDescription" runat="server" name="description" content="" />
> <meta id="metaKeywords" runat="server" name="keywords" content="" />
>
> That translates to (generated HTML) :
>
> <meta id="ctl00_metaDescription" name="description" content="Xyz" />
> <meta id="ctl00_metaKeywords" name="keywords" content="Xyz" />
>
> I have in my web.config the line :
> <xhtmlConformance 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_metaDescription"
> name="descriptioThanks
>
>
>
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 !
|