[
Lists Home |
Date Index |
Thread Index
]
Bullard, Claude L (Len) wrote:
> The subject says it. If HTML has an XML
> namespace inside it, is the Draconian parse
> rule still in effect?
>
Of course, the question is, what is it that you have when you do this?
Not HTML, although probably most browsers will render the PCDATA in the
unknown elements. HTML does not know about namespaces or xml. If it's
xhtml, it will not easily accomodate your add-in xml data.
Supposing that you have a way to strip out the xml and feed it to an xml
parse, all the usual xml parsing rules (draconian, if you like) would
apply to that parse.
> I can think of some wrinkles here, but they
> all lead to the conclusion that it is a bad
> idea to use XML inside HTML because the rules
> aren't the same.
>
Not only that, but browsers tend to apply different rule depending on
what parse mode they are in - like strict or quirks mode. So you might
not even get consistent results from the same browser if it got kicked
into one or the other mode.
> And that could be a reason to deprecate HTML
> altogether.
>
Maybe, but it doesn't look like that is going to be happening anytime soon.
Cheers,
Tom P
--
Thomas B. Passin
Explorer's Guide to the Semantic Web (Manning Books)
http://www.manning.com/catalog/view.php?book=passin
|