Closed Bug 1302705 Opened 8 years ago Closed 6 months ago

Deprecate SVGSVGElement.deselectAll()

Categories

(Core :: SVG, task, P3)

task

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: sebo, Assigned: longsonr)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file)

SVG 2 deprecated the SVGSVGElement.deselectAll() method[1], because it duplicates functionality of the Selection API.

To let web developers know about the deprecation, a console warning should be output when the method is used.

Sebastian

[1] https://svgwg.org/svg2-draft/changes.html#structure
Blocks: svg2
Priority: -- → P3
Type: defect → enhancement
Severity: normal → S3
Assignee: nobody → longsonr
Status: NEW → ASSIGNED
Pushed by longsonr@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/e294409c345f
Add console warning about SVGSVGElement.deselectAll() being deprecated r=emilio
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch

Thank you for adding a patch, Robert! Unfortunately, the warning isn't logged to the console, though. I've tested with today's Nightly, i.e. 121.0a1 (2023-10-28).

The same happens for other deprecated APIs like SVGGraphicsElement.nearestViewportElement (requires the flag svg.nearestAndFarthestViewportElement.enabled to be enabled). So I assume it's a general issue.

Could you have a look at it?

Sebastian

Flags: needinfo?(longsonr)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

Sorry if it doesn't work I've no idea where to start. I've done the same changes as other patches e.g. https://hg.mozilla.org/mozilla-central/rev/299b070981cf68e0beac40cdd86cb6bbe5802d2a

I suggest checking some other deprecated interfaces and raising a more general new bug with your finding.s

Status: REOPENED → RESOLVED
Closed: 6 months ago6 months ago
Flags: needinfo?(longsonr)
Resolution: --- → FIXED

Fair enough. I'll try to get some more info and file a new bug.

Sebastian

Blocks: 1879773
Type: enhancement → task
Summary: Add console warning about SVGSVGElement.deselectAll() being deprecated → Deprecate SVGSVGElement.deselectAll()
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: