5182d0c488
Previous HTML such as this would be lexed incorrectly: <div> <ul> <li>foo </ul> inside div </div> outside div The lexer would see this as the following instead: <div> <ul> <li>foo</li> inside div </ul> outside div </div> This commit exposes the name of the closing tag to XML::Lexer#on_element_end (omitted for self closing tags). This can be used to automatically close nested tags that were left open, ensuring the above HTML is lexer correctly. The new setup ignores namespace prefixes as these are not used in HTML, XML in turn won't even run the code to begin with since it doesn't allow one to leave out closing tags. |
||
---|---|---|
.. | ||
base_lexer.rl |