Fix serialization of HTML void elements when they have children. Void elements (such as <hr>) cannot have a closing tag. When encountering them, we properly do not serialize the void element's children, however, we incorrectly append an end tag (because the element technically has children). Relevant specification: - https://html.spec.whatwg.org/#html-fragment-serialisation-algorithm "" If current node is an area, base, basefont, bgsound, br, col, embed, frame, hr, img, input, keygen, link, meta, param, source, track or wbr element, then continue on to the next child node at this point. "" Firefox matches the specification.
Created attachment 289579 [details] Patch
Comment on attachment 289579 [details] Patch Clearing flags on attachment: 289579 Committed r206266: <http://trac.webkit.org/changeset/206266>
All reviewed patches have been landed. Closing bug.