Quote:
Originally Posted by kovidgoyal
In HTML 5 the parsing algorithm is fully specified and robust against bad markup, i.e. all spec compliant parser produce the same output for the same bad markup. So it doesn't matter if there are small mistakes in the markup, since they result in the same DOM in all user agents.
This argument about strict syntax vs. robust parsing has been had endlessly through all the ages that computers have existed. In the web world, robust parsing has won, the EPUB standards committee just didn't get the memo.
|
The same parsing algorithm that has people concerned about it's ability to parse in linear time? The adoption agency algorithm is a horrible example of good intentions with it's nested loops that can go quadratic. Going by some of your posted code, you are aware of this issue.