[Htmlparser-developer] Lexer STRICT_REMARKS
Brought to you by:
derrickoswald
From: Ian M. <ian...@gm...> - 2007-02-26 15:37:14
|
I'm wondering if STRICT_REMARKS in Lexer should default to false rather than true - that way it would parse more closely to how browsers parse it, which are generally forgiving about these things. This would stop people wondering why it works in their browser but not in the HTML Parser. Those who want true strict parsing could choose to enable this. The real issue is probably more the visibility of this setting - it would perhaps be better if we had a centralised way for switching between standards compliance and being forgiving - equivalent to 'quirks mode' and 'standards compliance mode' of browsers, and set this across the entire parser. I imagine this would be quite a task however. Ian |