Closed Bug 1489908 Opened 7 years ago Closed 7 years ago

body.outerHTML setter creates superfluous empty <head> nodes

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows 10
defect
Not set
trivial

Tracking

()

RESOLVED INVALID
Tracking Status
firefox64 --- affected

People

(Reporter: myf, Unassigned)

Details

Attachments

(2 files)

Attached file testcase.html
Setting document.body.outerHTML has quite harmless but definitely unwanted side effect: creates extra <head></head> before body on each call. Try the testcase. Observed in all (as far as memory serves) desktop versions of Firefox, including latest Nightly 20180909100234.
Attachment #9007632 - Attachment mime type: text/plain → text/html
Attached image bug 1489908.gif
Flags: needinfo?(hsivonen)
Resolving as INVALID in the sense that the behavior is according to spec. (Chrome has the same behavior, FWIW.)
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Flags: needinfo?(hsivonen)
Resolution: --- → INVALID
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: