RESOLVED FIXED308744
clearItems() consistency across SVG list types
https://bugs.webkit.org/show_bug.cgi?id=308744
Summary clearItems() consistency across SVG list types
Karl Dubost
Reported 2026-02-26 05:59:39 PST
svg/SVGStringList.cpp svg/SVGLengthList.cpp svg/SVGNumberList.cpp svg/SVGPointList.cpp All four list types ask the same question: // FIXME: Should this clearItems() on failure like SVGTransformList does? SVGTransformList already has the correct behavior. The fix is mechanical: add clearItems() in the failure path of each parse method. But are there tests to make sure that this is the behavior of other browsers. This would be probably the first step. 1. Create a WPT test 2. Check with other browsers 3. Fix eventually.
Attachments
Radar WebKit Bug Importer
Comment 1 2026-02-26 05:59:44 PST
Karl Dubost
Comment 2 2026-02-26 07:11:50 PST
EWS
Comment 3 2026-03-01 20:29:36 PST
Committed 308438@main (a4d918a0ff56): <https://commits.webkit.org/308438@main> Reviewed commits have been landed. Closing PR #59513 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.