4 ms·
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 brow
by vbezhenar 10y ago
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.
- mbrock 10y agoSuch interleavings can actually be valid HTML5, in that the specification defines an algorithm for parsing that handles such "tag soup" in a reasonable way.
- moron4hire 10y agoThat's not the same thing as making interleaving valid.
- mbrock 10y agoWhat's the difference?
- moron4hire 10y agoYes, 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.