4 ms·
HTML5 got one thing right though: standardization of the DOM failure behavior. As an implementation detail of their design, they went with "sensible recovery" f
by yuhong 12y ago
HTML5 got one thing right though: standardization of the DOM failure behavior. As an implementation detail of their design, they went with "sensible recovery" for failures over stricter failure modes.
It was browsers that did that in the first place. HTML5 just standardized the exact behavior on failures.
- possibilistic 12y agoWhich is what I said, right? HTML 4 - vendors implemented the spec incongruently and failed in their own special ways. XHTML strict - standard parsing rules with strict failure mode. HTML 5 - standard parsing rules, suggested (but not required) rendering behavior for browser uniformity, and well-defined failure behavior.
- domenicd 12y agoIncorrect. HTML5 synthesized the exact behavior that was closest to the majority of browsers. But not all browsers agreed (e.g. Mozilla would change its HTML parsing behavior depending on network packet boundaries), so there was still effort aligning with the newly-specced common parsing algorithm. At the time there was much skepticism that such alignment was even possible.
- TheLoneWolfling 12y ago> Mozilla would change its HTML parsing behavior depending on network packet boundaries I want to know more...
- domenicd 12y agoSome links: https://blog.mozilla.org/mrbkap/2013/08/12/the-old-html-parser-is-dead-long-live-the-html-parser/ https://blog.mozilla.org/mrbkap/2013/08/12/the-old-html-pars... http://ln.hixie.ch/?start=1138169545&count=1 http://ln.hixie.ch/?start=1138169545&count=1 https://bugzilla.mozilla.org/show_bug.cgi?id=324875 https://bugzilla.mozilla.org/show_bug.cgi?id=324875