Open Bug 1628526 Opened 5 years ago Updated 5 years ago

Moving a block element dynamically into a inline element in <p> generate differently DOM tree

Categories

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

defect

Tracking

()

People

(Reporter: TYLin, Unassigned)

Details

Attachments

(1 file)

I notice this while taking a look at bug 1602021.

The attach testcase has two paragraphs. The first one is initially like the following, then the script moves box into span.

<p>
  <span id="span"></span>
</p>
<div id="box">box</div>

Should it generate the same DOM tree as the following?

<p>
  <span><div>box</div></span>
</p>

Currently, the two DOM trees are different.

Priority: -- → P3

Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is P3 (Backlog,) indicating it has been triaged, the bug's Severity is being updated to S3 (normal.)

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: