Re: XHTML 1.1 Strict question

Discussion in 'ASP .Net' started by Mike Gleason jr Couturier, May 22, 2008.

  1. "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 !
    Mike Gleason jr Couturier, May 22, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Peter L.
    Replies:
    0
    Views:
    319
    Peter L.
    Oct 20, 2003
  2. Rob Roberts
    Replies:
    5
    Views:
    2,792
    Rob Roberts
    Jan 20, 2006
  3. Christopher R

    xhtml strict is being very stict why?

    Christopher R, Oct 1, 2003, in forum: HTML
    Replies:
    13
    Views:
    792
  4. Jure Erznoznik

    Another XHTML 1.0 strict question

    Jure Erznoznik, Apr 19, 2005, in forum: HTML
    Replies:
    3
    Views:
    1,560
    =?UTF-8?B?UmFsZiBNw7ZybGVy?=
    Apr 19, 2005
  5. t
    Replies:
    76
    Views:
    1,745
    Neredbojias
    Feb 23, 2008
Loading...

Share This Page