4 ms·
You're assuming that web sites consist of compliant html; which is never the case.
by arkitaip 15y ago
You're assuming that web sites consist of compliant html; which is never the case.
- AndrewDucker 15y agoThe HTML5 parsing algorithm states how to parse invalid HTML.
- masklinn 15y agoThe HTML5 parsing algorithm was designed to standardize parsing of real-world pages, including error recovery (for invalid and/or legacy markup), that's the whole bloody point of it. Better, using an implementation of the HTML5 parsing algorithm means you're parsing pages the same way browsers do: Gecko (Firefox), Webkit (Chrome and Safari) and Presto (Opera) have all landed the HTML5 parsing algorithm, and Trident (IE) is in the process of getting it (the feature is planned for IE10's Trident 6.0)