Re:How to Avoid Being Called a Bozo When Producing XML (2005)
by vbezhenar on Monday August 01, 2016 @04:25AM
(#12200889)
This is not correct XML, parser will throw error. This is not correct HTML either. The only reason why this code is likely to produce good enough output in browser is that browser tries really hard to produce something readable even from complete garbage.
[ Parent
| on HN ]
Re:How to Avoid Being Called a Bozo When Producing XML (2005)
by moron4hire on Monday August 01, 2016 @06:31AM
(#12201316)
Yes, I know it's not valid XML If you had read my post and not just skimmed the examples, you would have seen that was the point. XML's verbose end-tag feature makes it possible to make malformed documents in such a way that is just plain impossible with S-Expressions.
Re:How to Avoid Being Called a Bozo When Producing XML (2005)
by mbrock on Monday August 01, 2016 @04:29AM
(#12200906)
Such interleavings can actually be valid HTML5, in that the specification defines an algorithm for parsing that handles such "tag soup" in a reasonable way.
Re:How to Avoid Being Called a Bozo When Producing XML (2005)
by moron4hire on Monday August 01, 2016 @06:35AM
(#12201329)
That's not the same thing as making interleaving valid.