Closed Bug 1709790 Opened 3 years ago Closed 2 years ago

Add support for element.outerText

Categories

(Core :: DOM: Core & HTML, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
98 Branch
Webcompat Priority ?
Tracking Status
firefox98 --- fixed

People

(Reporter: karlcow, Assigned: emilio)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-complete)

Attachments

(2 files)

There is a discussion on adding outerText to the html spec.
https://github.com/whatwg/html/pull/6653/files/511057620a418bb3249ea6ae49bf5a420e8699ae

In addition to textContent in the past we added for compat reasons innerText (Bug 264412 ).
https://github.com/whatwg/compat/issues/5

outerText is being used in the wild, but I don't remember from the top of my head any compat issues related to it. I will dig.

Currently if I'm not mistaken, Chrome returns innerText for outerText.
https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/dom/element.cc;l=4727-4734;drc=be6676e3f9f897ae9c9d14fd890a95d0a54a834a

Severity: -- → S3
Priority: -- → P3
Type: defect → enhancement
Blocks: html
Assignee: nobody → emilio
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3d133626b40c
Implement HTMLElement.outerText. r=smaug
https://hg.mozilla.org/integration/autoland/rev/d220aefbd9c9
Remove no longer needed intervention. r=webcompat-reviewers,denschub
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/32451 for changes under testing/web-platform/tests
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch
Upstream PR merged by moz-wptsync-bot

FF98 docs and compatibility updates for this can be tracked in https://github.com/mdn/content/issues/12576#issuecomment-1032211070 (work awaiting review)

You need to log in before you can comment on or make changes to this bug.