Closed Bug 1951027 Opened 4 months ago Closed 4 months ago

Add WPT to check collapsed invisible white-spaces do not appear in the result of `.innerText`

Categories

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

task

Tracking

()

RESOLVED FIXED
137 Branch
Tracking Status
firefox137 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

()

Details

Attachments

(1 file)

It seems that there are not enough testing for the handling of collapsible
white-spaces of the getter of .innerText.

Additionally, Chrome overrides white-space property if the element has
contenteditable="plaintext-only" and that causes incompatible results from
Firefox and Safari. Therefore, WPT should explicitly test it as invalid
behavior.

Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/c12c5867b31f Add tests of handling collapsed white-space in the result of `.innerText` r=jfkthame
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/51040 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 137 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: