Open Bug 1514499 Opened 3 years ago Updated 3 years ago

Serialize the children of void elements as the empty string


(Core :: DOM: HTML Parser, defect, P3)

66 Branch





(Reporter: code, Unassigned)


User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:66.0) Gecko/20100101 Firefox/66.0

Steps to reproduce:

Firefox and Chrome/Safari have different behaviour when serializing the innerHTML of void elements if they have children. Chrome and Safari return the empty string, while Firefox returns the serialized child nodes.

Firefox's behaviour follows the current specification, but a change to the HTML fragment serialization algorithm in will align the specification with the implementations in Chrome and Safari instead.

There are tests for this in
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.