Closed Bug 1851039 Opened 10 months ago Closed 10 months ago

Investigate if it is possible to reuse the text node when setting element.textContent

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
119 Branch
Tracking Status
firefox119 --- fixed

People

(Reporter: smaug, Assigned: smaug)

References

Details

(Whiteboard: [sp3])

Attachments

(1 file)

Reusing the text node should be possible if it is owned only by the parent and possible primary frame and there are no mutation event listeners nor mutation observers.

Attachment #9351119 - Attachment description: WIP: Bug 1851039 - Investigate if it is possible to reuse the text node when setting element.textContent, r=emilio → Bug 1851039 - Investigate if it is possible to reuse the text node when setting element.textContent, r=emilio
Severity: -- → N/A
Type: defect → enhancement
Pushed by opettay@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e6370dc41077
Investigate if it is possible to reuse the text node when setting element.textContent, r=emilio

Backed out for causing wpt failures in dynamic-mtext-like-001.html

And ba failures: https://treeherder.mozilla.org/logviewer?job_id=427745896&repo=autoland

Flags: needinfo?(smaug)

Interesting.

Flags: needinfo?(smaug)

Smells like a layout bug, but will investigate

Depends on: 1851250
Pushed by opettay@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3451691c483d
Investigate if it is possible to reuse the text node when setting element.textContent, r=emilio
Pushed by opettay@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7fd1c7032f52
Investigate if it is possible to reuse the text node when setting element.textContent, r=emilio
Flags: needinfo?(smaug)
Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: