Closed Bug 1880689 Opened 2 months ago Closed 2 months ago

SVGAElement.prototype.text should be removed

Categories

(Core :: SVG, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
125 Branch
Tracking Status
relnote-firefox --- 125+
firefox125 --- fixed

People

(Reporter: longsonr, Assigned: longsonr)

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

See https://github.com/w3c/svgwg/issues/931

Only implemented by Firefox and you can just use textContent anyway.

Assignee: nobody → longsonr
Status: NEW → ASSIGNED
Attachment #9380686 - Attachment description: Bug 1880689 -remove SVGAElement.prototype.text r=emilio → Bug 1880689 - Remove SVGAElement.prototype.text r=emilio

This removal needs to be documented in the related browser compat data.

Sebastian

Keywords: dev-doc-needed
Pushed by longsonr@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/a2d20caae947
Remove SVGAElement.prototype.text r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/44671 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
Upstream PR merged by moz-wptsync-bot

Release Note Request (optional, but appreciated)
[Why is this notable]:
SVGAElement has text methods that duplicate textContent. Safari and Chrome have never implemented this method and it's now been removed from Firefox. Calls to set text or get text content via SVGAElement.text can be replaced by SVGAElement.textContent.
[Affects Firefox for Android]:
yes
[Suggested wording]:
[Links (documentation, blog post, etc)]:
https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement
https://www.w3.org/TR/SVG2/linking.html#Links
https://www.w3.org/TR/SVG2/linking.html#InterfaceSVGAElement

relnote-firefox: --- → ?

Added to the Fx125 relnotes:

Support for SVGAElement.text was removed in favor of the more widely-implemented SVGAElement.textContent method.

FF125 MDN docs work for this can be tracked in https://github.com/mdn/content/issues/32779. This was just a release note and update of the compat data.

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

Attachment

General

Created:
Updated:
Size: