<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>308744</bug_id>
          
          <creation_ts>2026-02-26 05:59:39 -0800</creation_ts>
          <short_desc>clearItems() consistency across SVG list types</short_desc>
          <delta_ts>2026-03-01 20:29:38 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>SVG</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Karl Dubost">karlcow</reporter>
          <assigned_to name="Karl Dubost">karlcow</assigned_to>
          <cc>sabouhallawa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2185214</commentid>
    <comment_count>0</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2026-02-26 05:59:39 -0800</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2185215</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-02-26 05:59:44 -0800</bug_when>
    <thetext>&lt;rdar://problem/171263290&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2185242</commentid>
    <comment_count>2</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2026-02-26 07:11:50 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/59513</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2186026</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-03-01 20:29:36 -0800</bug_when>
    <thetext>Committed 308438@main (a4d918a0ff56): &lt;https://commits.webkit.org/308438@main&gt;

Reviewed commits have been landed. Closing PR #59513 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>