Eric B. Bednarz wrote:Missing system identifier forces a catalog lookup, see below.>Fair question, I should have said mainstream user agents (before Mosaic
there was a browser with support for inline graphics, scripting and
stylesheets; no web developer I know in real life knows that :).
Here we go…
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
Equivalent to><title/foo/
<title>foo</title>
Cf. `<meta ... />' being invalid in HTML.
(The start tag of the `html' element, and the start and end tags of the
`head' element may be *O*mitted.)
(The start tag of the `body' element may be *O*mitted.)><ul>
(The end tag of the `li' element may be *O*mitted.)><li>asd
Equivalent to><>bar</>
<li>bar</li>
Equivalent to></>
</ul>
The end tag of the `body' and `html` elements may be *O*mitted.
There is nothing amazing about that; the W3C Validator obviously validates>No, we don't have a winner here.
Truly amazing; it passes the W3C validator with flying colors!
against the SGML declaration and the DTD of the selected/detected markup
language according to its catalog of public identifiers. Which makes me
wonder what it would say about too long an attribute value.
X-Post & F'up2 ciwah, this is off-topic here.
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann