lexborisov / Modest

Modest is a fast HTML renderer implemented as a pure C99 library with no outside dependencies.
GNU Lesser General Public License v2.1
732 stars 65 forks source link

fix serialization #51

Closed Azq2 closed 6 years ago

Azq2 commented 6 years ago

Make serialization by spec:

"If current node is an area, base, basefont, bgsound, br, col, embed, frame, hr, img, input, link, meta, param, spacer, or wbr element, then continue on to the next child node at this point."

https://html.spec.whatwg.org/multipage/parsing.html#serialising-html-fragments