Bug 308744

Summary: clearItems() consistency across SVG list types
Product: WebKit Reporter: Karl Dubost <karlcow>
Component: SVGAssignee: Karl Dubost <karlcow>
Status: RESOLVED FIXED    
Severity: Normal CC: sabouhallawa, webkit-bug-importer, zimmermann
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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.