On Tue, 31 Jan 2006 10:22:29 -0000, "Danny@Kendal"
<da***@removethisbit.ghpkendal.co.uk> wrote:
There's one thing which has been niggling me for a while - if every web page
used the above doctype then wouldn't that swamp www.w3.org with requests for
the strict.dtd file?
Obviously not 8-)
What actually happens when a browser encounters the
doctype declaration?
Three things can happen:
* The browser recognises it and already has the DTD hard-coded into its
executable. There aren't many of these, and they hardly change very
often. The "DTD" here might be very crudely or partially represented -
there's little real need for it in a web parser, they have to make the
best of what they can get.
* The browser ignores it all anyway. The page renderer is coded in
visual basic and old string and it's sticks whatever it likes, wherever
it likes.
* It's a traditional SGML parser (unlikely to be found on the web). It
grabs one copy of that DTD, then caches it.