lexborisov / myhtml

Fast C/C++ HTML 5 Parser. Using threads.
GNU Lesser General Public License v2.1
1.66k stars 147 forks source link

serialization bug with br #172

Closed kostya closed 5 years ago

kostya commented 5 years ago
  <body>
    <br>
    <br></br>
    <br clear="all">
  </body>

this html after example serialization_high_level, became this (one more <br>):

<html><head></head><body>
    <br>
    <br><br>
    <br clear="all">
</body></html>
lexborisov commented 5 years ago

Hi @kostya In spec:

An end tag whose tag name is "br"
    Parse error. Drop the attributes from the token, and act as described in the next entry; i.e. act as if this was a "br" start tag token with no attributes, rather than the end tag token that it actually is.