[
Lists Home |
Date Index |
Thread Index
]
- To: "Bullard, Claude L \(Len\)" <len.bullard@intergraph.com>,"XML Developers List" <xml-dev@lists.xml.org>
- Subject: RE: [xml-dev] What is the rule for parsing XML in a namespace inside HTML?
- From: "Joshua Allen" <joshuaa@microsoft.com>
- Date: Mon, 12 Jul 2004 14:19:58 -0700
- Thread-index: AcRoVV/ZFbgU8oqHTUq+Fe8c1nyPLwAAA4Xw
- Thread-topic: [xml-dev] What is the rule for parsing XML in a namespace inside HTML?
> The subject says it. If HTML has an XML
> namespace inside it, is the Draconian parse
> rule still in effect?
Only if parsing with an XML parser. It's OK for HTML to contain
whatever, since HTML doesn't know about XML anyway.
In fact, IE has the convention of embedding "data islands" meant to be
parsed as XML inside <xml> tags in the HTML document. Of course, a tag
name <xml> is not well-formed XML, but it's OK as HTML.
> all lead to the conclusion that it is a bad
> idea to use XML inside HTML because the rules
> aren't the same.
Well, it works OK with the IE convention described above, because the
rules are clear -- up to and including the <xml> tag, use HTML rules;
for everything inside the <xml> tag, use the draconian rules. In
general it could be confusing, though.
> And that could be a reason to deprecate HTML
> altogether.
That would be baby with bathwater, IMO. Browser support for XHTML is
pretty bad; it's more faked than real. HTML works great; no reason to
throw it out.
|