开发者

Other HTML serialisations?

开发者 https://www.devze.com 2022-12-29 06:09 出处:网络
After keeping in mind that HTML has both an SGML and XML serialisations, which are just encodings for a parser to \"explode\" into a DOM, I\'m wondering whether there are other serialisations for HTML

After keeping in mind that HTML has both an SGML and XML serialisations, which are just encodings for a parser to "explode" into a DOM, I'm wondering whether there are other serialisations for HTML. A JSON serialisation? If so, are there any parsers for these altern开发者_运维技巧ative serialisations?


Useful serializations? No. Obviously, people can make up their own serializations, and given the size of the Web, there's probably a number of them. However, none of those are supported widely. For example, there's the format used by html5lib tests, which is used for testing HTML5 parsing implementations.

(Also note that what you call the SGML serialization isn't really SGML at all, as noted in HTML5.)

0

精彩评论

暂无评论...
验证码 换一张
取 消