tony-o / perl6-html-parser-xml

html -> xml::document converter
2 stars 5 forks source link

Fix a bug with shitty html where the wrong tag receive a / ending #10

Closed Skarsnik closed 9 years ago

Skarsnik commented 9 years ago

eg :

Without this fix test 1, 3 and 5 for 08_debious fail due to the module closing tag too soon and mess up the resulting xml tree.

I have no idea if this change as some side effect (all tests still pass). Basicly the change make that only empty tags (like or ) can put a closure when a /> is met.