Open hauntedhost opened 8 years ago
@somlor thanks for the report! No, this is not expected. The floki
tag is a "hack" to fix a problem with mochiweb_html
parser.
The problem is that the parser can't understand very well HTML snippets without a parent tag (for example: <span>Click</span><button>Here</button>
will be parsed as {"span", [], ["Click"]}
).
The remotion of this closing tag </floki>
can fix the problem. But one test is failing.
I'm trying to think a better way to fix this.
@philss OK, makes sense. Let me know if there is anything I can do to help.
Via #37 it looks like handling unclosed tags is a goal for built-in HTML parser. But I was surprised that a tag name
floki
was added to the parsed html tree here. Is this expected behavior?