mischov / meeseeks_html5ever

Meeseeks-specific NIF binding of html5ever using Rustler.
Apache License 2.0
10 stars 14 forks source link

Element namespace and tag splitting is broken #2

Closed mischov closed 7 years ago

mischov commented 7 years ago

Problem

split_ns_and_tag uses split_at, which means that if a namespace exists the : separating ns and tag is included in tag.

Solution

Don't include the :.

Either trim or use method that doesn't include, such as splitn.