Closed Bug 1861905 Opened 11 months ago Closed 11 months ago

Gecko-only WPT failure: [["defaultparagraphseparator","p"],["formatblock","<pre>"]] "<p>[foo<p>bar]" compare innerHTML

Categories

(Core :: DOM: Editor, task, P3)

task

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

Attachments

(1 file)

["<p>[foo<br>bar]</p>",
    [["defaultparagraphseparator","p"],["formatblock","<pre>"]],
    "<pre>[foo<br>bar]</pre>",
    [true,true],
    {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"p",false,false,"pre"]}],

<pre>foo</pre><pre>bar</pre> should also be allowed for now like this test:

["<p>[foo<p>bar]",
    [["defaultparagraphseparator","div"],["formatblock","<pre>"]],
    [
      "<pre>[foo<br>bar]</pre>",
      "<pre>[foo</pre><pre>bar]</pre>",
    ],
    [true,true],
    {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"p",false,false,"pre"]}],
See Also: → 1861908

There is no consensus how to treat multiple lines at formatting block.
Therefore, in bug 1244437, I made expectations in such cases allow to use both
<br>s in new format block or create multiple format blocks for each line.
However, I forgot to change this case.

Depends on D192182

Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/cfb4369a270b Make `[["defaultparagraphseparator","p"],["formatblock","<pre>"]] "<p>[foo<p>bar]"` allow to create 2 `<pre>` elements r=m_kato
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/42889 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: