DOCTYPE system id URI needed?

Discussion in 'HTML' started by =?ISO-8859-1?Q?=BBQ=AB?=, Jan 31, 2006.

  1. W3C recommends a system identifier URI be used along with the public
    identifier in the DTD. I had thought the URI was required, but
    after using HTML Tidy to convert some pages to HTML 4.01, I noticed
    the Tidy didn't put the URI in and that the W3C validator doesn't
    mind its absence.

    W3C says the URI "allows the user agent to download the DTD and
    entity sets as needed." Is the URI actually necessary? Desirable?
    Are there any agents which download it? [insert more vague questions
    for discussion here]

    --
    »Q«
     
    =?ISO-8859-1?Q?=BBQ=AB?=, Jan 31, 2006
    #1
    1. Advertising

  2. =?ISO-8859-1?Q?=BBQ=AB?=

    Mark Parnell Guest

    Deciding to do something for the good of humanity, »Q« <>
    declared in alt.html:

    > Is the URI actually necessary?


    For validation? No, as long as you are using a known doctype. If you are
    using a custom DTD, you will need to provide a URI, otherwise the
    validator doesn't know what to check the document against.

    For browsers? Not necessary as such, but certainly it can be a good idea
    in some cases, depending on the doctype used. A doctype declaration (for
    some doctypes, e.g. HTML4.01 Transitional) without a URI can trigger
    quirks mode in some browsers. More info:
    http://gutfeldt.ch/matthias/articles/doctypeswitch.html

    > Desirable?


    As above.

    > Are there any agents which download it?


    Validators will if they don't recognise the doctype. AFAIK no other user
    agent would bother.

    --
    Mark Parnell
    =====================================================
    Att. Google Groups users - this is your last warning:
    http://www.safalra.com/special/googlegroupsreply/
     
    Mark Parnell, Jan 31, 2006
    #2
    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. Simon Harris
    Replies:
    0
    Views:
    6,413
    Simon Harris
    May 10, 2005
  2. Stanimir Stamenkov
    Replies:
    1
    Views:
    2,494
    Stanimir Stamenkov
    Aug 17, 2005
  3. Headless
    Replies:
    5
    Views:
    394
    Headless
    Sep 1, 2003
  4. Pavel
    Replies:
    2
    Views:
    1,679
    Peter Flynn
    Aug 4, 2004
  5. Larry Lindstrom
    Replies:
    19
    Views:
    1,319
    Jonathan N. Little
    Jun 12, 2012
Loading...

Share This Page