Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: XHTML 1.1 Strict question

Reply
Thread Tools

Re: XHTML 1.1 Strict question

 
 
Mike Gleason jr Couturier
Guest
Posts: n/a
 
      05-22-2008

"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 !


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
question xhtml transitional or strict !? t HTML 76 02-23-2008 11:37 PM
Changing VS2005 to generate HTML 4.01/Strict instead of XHTML 1.0 Rob Roberts ASP .Net 5 01-20-2006 11:38 PM
Another XHTML 1.0 strict question Jure Erznoznik HTML 3 04-19-2005 10:35 AM
Announcing Limited Public Beta - XHTML 1.0 Strict Web Controls Peter L. ASP .Net 0 10-20-2003 08:14 PM
xhtml strict is being very stict why? Christopher R HTML 13 10-01-2003 07:17 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57