Add "length" and index getters/setters to list interfaces. (ACTION-2975)
authorCameron McCormack <cam@mcc.id.au>
Sat, 15 Sep 2012 23:26:33 +1000
changeset 374 9dd647b8c965
parent 373 a86dfaabe752
child 375 9e176a950c2a
Add "length" and index getters/setters to list interfaces. (ACTION-2975)
master/coords.html
master/painting.html
master/paths.html
master/types.html
--- a/master/coords.html	Sat Sep 15 22:20:07 2012 +1000
+++ b/master/coords.html	Sat Sep 15 23:26:33 2012 +1000
@@ -1555,26 +1555,29 @@
 
 <h3 id="InterfaceSVGPointList">Interface SVGPointList</h3>
 
-
-
 <p>This interface defines a list of SVGPoint objects.</p>
 
-
 <p><a>SVGPointList</a> has the same attributes and methods as other
 SVGxxxList interfaces. Implementers may consider using a single base class
 to implement the various SVGxxxList interfaces.</p>
 
+<p>The <a href='http://dev.w3.org/2006/webapi/WebIDL/#dfn-supported-property-indices'>supported property indices</a>
+of an <a>SVGPointList</a> object is all non-negative integers less than
+the length of the list.</p>
+
 <pre class="idl">interface <b>SVGPointList</b> {
 
+  readonly attribute unsigned long <a href="coords.html#__svg__SVGPointList__length">length</a>;
   readonly attribute unsigned long <a href="coords.html#__svg__SVGPointList__numberOfItems">numberOfItems</a>;
 
   void <a href="coords.html#__svg__SVGPointList__clear">clear</a>();
   <a class="idlinterface" href="coords.html#InterfaceSVGPoint">SVGPoint</a> <a href="coords.html#__svg__SVGPointList__initialize">initialize</a>(<a class="idlinterface" href="coords.html#InterfaceSVGPoint">SVGPoint</a> newItem);
-  <a class="idlinterface" href="coords.html#InterfaceSVGPoint">SVGPoint</a> <a href="coords.html#__svg__SVGPointList__getItem">getItem</a>(unsigned long index):
+  getter <a class="idlinterface" href="coords.html#InterfaceSVGPoint">SVGPoint</a> <a href="coords.html#__svg__SVGPointList__getItem">getItem</a>(unsigned long index):
   <a class="idlinterface" href="coords.html#InterfaceSVGPoint">SVGPoint</a> <a href="coords.html#__svg__SVGPointList__insertItemBefore">insertItemBefore</a>(<a class="idlinterface" href="coords.html#InterfaceSVGPoint">SVGPoint</a> newItem, unsigned long index);
   <a class="idlinterface" href="coords.html#InterfaceSVGPoint">SVGPoint</a> <a href="coords.html#__svg__SVGPointList__replaceItem">replaceItem</a>(<a class="idlinterface" href="coords.html#InterfaceSVGPoint">SVGPoint</a> newItem, unsigned long index);
   <a class="idlinterface" href="coords.html#InterfaceSVGPoint">SVGPoint</a> <a href="coords.html#__svg__SVGPointList__removeItem">removeItem</a>(unsigned long index);
   <a class="idlinterface" href="coords.html#InterfaceSVGPoint">SVGPoint</a> <a href="coords.html#__svg__SVGPointList__appendItem">appendItem</a>(<a class="idlinterface" href="coords.html#InterfaceSVGPoint">SVGPoint</a> newItem);
+  <a href="#__svg__SVGPointList__setter">setter</a> void (unsigned long index, <a>SVGPoint</a> newItem);
 };</pre>
 
 <dl class="interface">
@@ -1582,13 +1585,16 @@
 <dd>
 <dl class="attributes">
 
+<dt id="__svg__SVGPointList__length" class="attribute first-child"><b>length</b><span class="idl-type-parenthetical"> (readonly unsigned long)</span></dt>
+<dd class="attribute">
+  <div>The number of items in the list.</div>
+</dd>
+
 <dt id="__svg__SVGPointList__numberOfItems" class="attribute first-child"><b>numberOfItems</b><span class="idl-type-parenthetical"> (readonly unsigned long)</span></dt>
 <dd class="attribute">
-<div>
-The number of items in the list.
-
-</div>
+  <div>The number of items in the list.</div>
 </dd>
+
 </dl>
 </dd>
 <dt class="operations-header">Operations:</dt>
@@ -1918,6 +1924,8 @@
 </dd>
 </dl>
 </dd>
+<dt id="__svg__SVGPointList__setter" class="operation"><b>setter</b> void (unsigned long <var>index</var>, <a>SVGPoint</a> <var>newItem</var>)</dt>
+<dd class="operation"><div>Replaces the item at index <var>index</var> with <var>newItem</var>.</div></dd>
 </dl>
 </dd>
 </dl>
@@ -2786,39 +2794,39 @@
 how it reflects the value of the <a>'transform'</a> property,
 or just defer to css3-tranforms if everything is defined there.</p>
 
-
 <p>This interface defines a list of SVGTransform objects.</p>
 
-
 <p>The <a>SVGTransformList</a> and <a>SVGTransform</a> interfaces correspond
 to the various attributes which specify a set of transformations, such as
-the <a>'transform'</a> property which is available for many of SVG's elements.
-</p>
-
+the <a>'transform'</a> property which is available for many of SVG's elements.</p>
 
 <p><a>SVGTransformList</a> has the same attributes and methods as other
 SVGxxxList interfaces. Implementers may consider using a single base class
-to implement the various SVGxxxList interfaces.
-</p>
-
+to implement the various SVGxxxList interfaces.</p>
+
+<p>The <a href='http://dev.w3.org/2006/webapi/WebIDL/#dfn-supported-property-indices'>supported property indices</a>
+of an <a>SVGTransformList</a> object is all non-negative integers less than
+the length of the list.</p>
 
 <p id="ReadOnlyTransformList">An <a>SVGTransformList</a> object can be designated as <em>read only</em>,
 which means that attempts to modify the object will result in an exception
-being thrown, as described below.
-</p>
+being thrown, as described below.</p>
+
 <pre class="idl">interface <b>SVGTransformList</b> {
 
+  readonly attribute unsigned long <a href="coords.html#__svg__SVGTransformList__length">length</a>;
   readonly attribute unsigned long <a href="coords.html#__svg__SVGTransformList__numberOfItems">numberOfItems</a>;
 
   void <a href="coords.html#__svg__SVGTransformList__clear">clear</a>();
   <a class="idlinterface" href="coords.html#InterfaceSVGTransform">SVGTransform</a> <a href="coords.html#__svg__SVGTransformList__initialize">initialize</a>(<a class="idlinterface" href="coords.html#InterfaceSVGTransform">SVGTransform</a> newItem);
-  <a class="idlinterface" href="coords.html#InterfaceSVGTransform">SVGTransform</a> <a href="coords.html#__svg__SVGTransformList__getItem">getItem</a>(unsigned long index);
+  getter <a class="idlinterface" href="coords.html#InterfaceSVGTransform">SVGTransform</a> <a href="coords.html#__svg__SVGTransformList__getItem">getItem</a>(unsigned long index);
   <a class="idlinterface" href="coords.html#InterfaceSVGTransform">SVGTransform</a> <a href="coords.html#__svg__SVGTransformList__insertItemBefore">insertItemBefore</a>(<a class="idlinterface" href="coords.html#InterfaceSVGTransform">SVGTransform</a> newItem, unsigned long index);
   <a class="idlinterface" href="coords.html#InterfaceSVGTransform">SVGTransform</a> <a href="coords.html#__svg__SVGTransformList__replaceItem">replaceItem</a>(<a class="idlinterface" href="coords.html#InterfaceSVGTransform">SVGTransform</a> newItem, unsigned long index);
   <a class="idlinterface" href="coords.html#InterfaceSVGTransform">SVGTransform</a> <a href="coords.html#__svg__SVGTransformList__removeItem">removeItem</a>(unsigned long index);
   <a class="idlinterface" href="coords.html#InterfaceSVGTransform">SVGTransform</a> <a href="coords.html#__svg__SVGTransformList__appendItem">appendItem</a>(<a class="idlinterface" href="coords.html#InterfaceSVGTransform">SVGTransform</a> newItem);
   <a class="idlinterface" href="coords.html#InterfaceSVGTransform">SVGTransform</a> <a href="coords.html#__svg__SVGTransformList__createSVGTransformFromMatrix">createSVGTransformFromMatrix</a>(<a class="idlinterface" href="coords.html#InterfaceSVGMatrix">SVGMatrix</a> matrix);
   <a class="idlinterface" href="coords.html#InterfaceSVGTransform">SVGTransform</a> <a href="coords.html#__svg__SVGTransformList__consolidate">consolidate</a>();
+  <a href="#__svg__SVGTransformList__setter">setter</a> void (unsigned long index, <a>SVGTransform</a> newItem);
 };</pre>
 
 <dl class="interface">
@@ -2826,12 +2834,14 @@
 <dd>
 <dl class="attributes">
 
+<dt id="__svg__SVGTransformList__length" class="attribute first-child"><b>length</b><span class="idl-type-parenthetical"> (readonly unsigned long)</span></dt>
+<dd class="attribute">
+  <div>The number of items in the list.</div>
+</dd>
+
 <dt id="__svg__SVGTransformList__numberOfItems" class="attribute first-child"><b>numberOfItems</b><span class="idl-type-parenthetical"> (readonly unsigned long)</span></dt>
 <dd class="attribute">
-<div>
-The number of items in the list.
-
-</div>
+  <div>The number of items in the list.</div>
 </dd>
 </dl>
 </dd>
@@ -3237,6 +3247,11 @@
 </dd>
 </dl>
 </dd>
+<dt id="__svg__SVGTransformList__setter" class="operation"><b>setter</b> void (unsigned long <var>index</var>, <a>SVGTransform</a> <var>newItem</var>)</dt>
+<dd class="operation"><div>Replaces the item at index <var>index</var> with <var>newItem</var>.
+If the list is <a href="#ReadOnlyTransformList">read only</a>, then a
+<a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#nomodificationallowederror">NoModificationAllowedError</a>
+is thrown.</div></dd>
 </dl>
 </dd>
 </dl>
--- a/master/painting.html	Sat Sep 15 22:20:07 2012 +1000
+++ b/master/painting.html	Sat Sep 15 23:26:33 2012 +1000
@@ -3449,6 +3449,10 @@
 is maintained in the order that the markers are painted (see
 <a href='painting.html#Markers'>Markers</a>).</p>
 
+<p>The <a href='http://dev.w3.org/2006/webapi/WebIDL/#dfn-supported-property-indices'>supported property indices</a>
+of an <a>SVGPathSegList</a> object is all non-negative integers less than
+the length of the list.</p>
+
 <pre class='idl'>interface <b>SVGMarkerList</b> {
   readonly attribute unsigned long <a href='#__svg__SVGMarkerList__length'>length</a>;
   getter <a>SVGMarkerInstance</a>? <a href='#__svg__SVGMarkerList__item'>item</a>(unsigned long index);
--- a/master/paths.html	Sat Sep 15 22:20:07 2012 +1000
+++ b/master/paths.html	Sat Sep 15 23:26:33 2012 +1000
@@ -1952,26 +1952,29 @@
 
 <h3 id="InterfaceSVGPathSegList">Interface SVGPathSegList</h3>
 
-
-
 <p>This interface defines a list of SVGPathSeg objects.</p>
 
-
 <p><a>SVGPathSegList</a> has the same attributes and methods as other
 SVGxxxList interfaces. Implementers may consider using a single base class
-to implement the various SVGxxxList interfaces.
-</p>
+to implement the various SVGxxxList interfaces.</p>
+
+<p>The <a href='http://dev.w3.org/2006/webapi/WebIDL/#dfn-supported-property-indices'>supported property indices</a>
+of an <a>SVGPathSegList</a> object is all non-negative integers less than
+the length of the list.</p>
+
 <pre class="idl">interface <b>SVGPathSegList</b> {
 
+  readonly attribute unsigned long <a href="paths.html#__svg__SVGPathSegList__length">length</a>;
   readonly attribute unsigned long <a href="paths.html#__svg__SVGPathSegList__numberOfItems">numberOfItems</a>;
 
   void <a href="paths.html#__svg__SVGPathSegList__clear">clear</a>();
   <a class="idlinterface" href="paths.html#InterfaceSVGPathSeg">SVGPathSeg</a> <a href="paths.html#__svg__SVGPathSegList__initialize">initialize</a>(<a class="idlinterface" href="paths.html#InterfaceSVGPathSeg">SVGPathSeg</a> newItem);
-  <a class="idlinterface" href="paths.html#InterfaceSVGPathSeg">SVGPathSeg</a> <a href="paths.html#__svg__SVGPathSegList__getItem">getItem</a>(unsigned long index);
+  getter <a class="idlinterface" href="paths.html#InterfaceSVGPathSeg">SVGPathSeg</a> <a href="paths.html#__svg__SVGPathSegList__getItem">getItem</a>(unsigned long index);
   <a class="idlinterface" href="paths.html#InterfaceSVGPathSeg">SVGPathSeg</a> <a href="paths.html#__svg__SVGPathSegList__insertItemBefore">insertItemBefore</a>(<a class="idlinterface" href="paths.html#InterfaceSVGPathSeg">SVGPathSeg</a> newItem, unsigned long index);
   <a class="idlinterface" href="paths.html#InterfaceSVGPathSeg">SVGPathSeg</a> <a href="paths.html#__svg__SVGPathSegList__replaceItem">replaceItem</a>(<a class="idlinterface" href="paths.html#InterfaceSVGPathSeg">SVGPathSeg</a> newItem, unsigned long index);
   <a class="idlinterface" href="paths.html#InterfaceSVGPathSeg">SVGPathSeg</a> <a href="paths.html#__svg__SVGPathSegList__removeItem">removeItem</a>(unsigned long index);
   <a class="idlinterface" href="paths.html#InterfaceSVGPathSeg">SVGPathSeg</a> <a href="paths.html#__svg__SVGPathSegList__appendItem">appendItem</a>(<a class="idlinterface" href="paths.html#InterfaceSVGPathSeg">SVGPathSeg</a> newItem);
+  <a href="#__svg__SVGPathSegList__setter">setter</a> void (unsigned long index, <a>SVGPathSeg</a> newItem);
 };</pre>
 
 <dl class="interface">
@@ -1979,13 +1982,16 @@
 <dd>
 <dl class="attributes">
 
+<dt id="__svg__SVGPathSegList__length" class="attribute first-child"><b>length</b><span class="idl-type-parenthetical"> (readonly unsigned long)</span></dt>
+<dd class="attribute">
+  <div>The number of items in the list.</div>
+</dd>
+
 <dt id="__svg__SVGPathSegList__numberOfItems" class="attribute first-child"><b>numberOfItems</b><span class="idl-type-parenthetical"> (readonly unsigned long)</span></dt>
 <dd class="attribute">
-<div>
-The number of items in the list.
-
-</div>
+  <div>The number of items in the list.</div>
 </dd>
+
 </dl>
 </dd>
 <dt class="operations-header">Operations:</dt>
@@ -2315,6 +2321,8 @@
 </dd>
 </dl>
 </dd>
+<dt id="__svg__SVGPathSegList__setter" class="operation"><b>setter</b> void (unsigned long <var>index</var>, <a>SVGPathSeg</a> <var>newItem</var>)</dt>
+<dd class="operation"><div>Replaces the item at index <var>index</var> with <var>newItem</var>.</div></dd>
 </dl>
 </dd>
 </dl>
--- a/master/types.html	Sat Sep 15 22:20:07 2012 +1000
+++ b/master/types.html	Sat Sep 15 23:26:33 2012 +1000
@@ -1701,38 +1701,42 @@
 
 <h3 id="InterfaceSVGStringList">Interface SVGStringList</h3>
 
-
-
 <p>This interface defines a list of DOMString values.</p>
 
-
 <p><a>SVGStringList</a> has the same attributes and methods as other
 SVGxxxList interfaces. Implementers may consider using a single base class
-to implement the various SVGxxxList interfaces.
-</p>
+to implement the various SVGxxxList interfaces.</p>
+
+<p>The <a href='http://dev.w3.org/2006/webapi/WebIDL/#dfn-supported-property-indices'>supported property indices</a>
+of an <a>SVGStringList</a> object is all non-negative integers less than
+the length of the list.</p>
+
 <pre class="idl">interface <b>SVGStringList</b> {
 
+  readonly attribute unsigned long <a href="types.html#__svg__SVGStringList__length">length</a>;
   readonly attribute unsigned long <a href="types.html#__svg__SVGStringList__numberOfItems">numberOfItems</a>;
 
   void <a href="types.html#__svg__SVGStringList__clear">clear</a>();
   DOMString <a href="types.html#__svg__SVGStringList__initialize">initialize</a>(DOMString newItem);
-  DOMString <a href="types.html#__svg__SVGStringList__getItem">getItem</a>(unsigned long index);
+  getter DOMString <a href="types.html#__svg__SVGStringList__getItem">getItem</a>(unsigned long index);
   DOMString <a href="types.html#__svg__SVGStringList__insertItemBefore">insertItemBefore</a>(DOMString newItem, unsigned long index);
   DOMString <a href="types.html#__svg__SVGStringList__replaceItem">replaceItem</a>(DOMString newItem, unsigned long index);
   DOMString <a href="types.html#__svg__SVGStringList__removeItem">removeItem</a>(unsigned long index);
   DOMString <a href="types.html#__svg__SVGStringList__appendItem">appendItem</a>(DOMString newItem);
-};</pre><dl class="interface">
+  <a href="#__svg__SVGStringList__setter">setter</a> void (unsigned long index, DOMString newItem);
+};</pre>
+
+<dl class="interface">
 <dt class="attributes-header">Attributes:</dt>
 <dd>
 <dl class="attributes">
 
+<dt id="__svg__SVGStringList__length" class="attribute first-child"><b>length</b><span class="idl-type-parenthetical"> (readonly unsigned long)</span></dt>
+<dd class="attribute"><div>The number of items in the list.</div></dd>
+
 <dt id="__svg__SVGStringList__numberOfItems" class="attribute first-child"><b>numberOfItems</b><span class="idl-type-parenthetical"> (readonly unsigned long)</span></dt>
-<dd class="attribute">
-<div>
-The number of items in the list.
-
-</div>
-</dd>
+<dd class="attribute"><div>The number of items in the list.</div></dd>
+
 </dl>
 </dd>
 <dt class="operations-header">Operations:</dt>
@@ -2045,6 +2049,8 @@
 </dd>
 </dl>
 </dd>
+<dt id="__svg__SVGStringList__setter" class="operation"><b>setter</b> void (unsigned long <var>index</var>, DOMString <var>newItem</var>)</dt>
+<dd class="operation"><div>Replaces the item at index <var>index</var> with <var>newItem</var>.</div></dd>
 </dl>
 </dd>
 </dl>
@@ -2204,44 +2210,50 @@
 
 <h3 id="InterfaceSVGNumberList">Interface SVGNumberList</h3>
 
-
-
 <p>This interface defines a list of SVGNumber objects.</p>
 
-
 <p><a>SVGNumberList</a> has the same attributes and methods as other
 SVGxxxList interfaces. Implementers may consider using a single base class
-to implement the various SVGxxxList interfaces.
-</p>
-
+to implement the various SVGxxxList interfaces.</p>
+
+<p>The <a href='http://dev.w3.org/2006/webapi/WebIDL/#dfn-supported-property-indices'>supported property indices</a>
+of an <a>SVGNumberList</a> object is all non-negative integers less than
+the length of the list.</p>
 
 <p id="ReadOnlyNumberList">An <a>SVGNumberList</a> object can be designated as <em>read only</em>,
 which means that attempts to modify the object will result in an exception
-being thrown, as described below.
-</p>
+being thrown, as described below.</p>
+
 <pre class="idl">interface <b>SVGNumberList</b> {
 
+  readonly attribute unsigned long <a href="types.html#__svg__SVGNumberList__length">length</a>;
   readonly attribute unsigned long <a href="types.html#__svg__SVGNumberList__numberOfItems">numberOfItems</a>;
 
   void <a href="types.html#__svg__SVGNumberList__clear">clear</a>();
   <a class="idlinterface" href="types.html#InterfaceSVGNumber">SVGNumber</a> <a href="types.html#__svg__SVGNumberList__initialize">initialize</a>(<a class="idlinterface" href="types.html#InterfaceSVGNumber">SVGNumber</a> newItem);
-  <a class="idlinterface" href="types.html#InterfaceSVGNumber">SVGNumber</a> <a href="types.html#__svg__SVGNumberList__getItem">getItem</a>(unsigned long index);
+  getter <a class="idlinterface" href="types.html#InterfaceSVGNumber">SVGNumber</a> <a href="types.html#__svg__SVGNumberList__getItem">getItem</a>(unsigned long index);
   <a class="idlinterface" href="types.html#InterfaceSVGNumber">SVGNumber</a> <a href="types.html#__svg__SVGNumberList__insertItemBefore">insertItemBefore</a>(<a class="idlinterface" href="types.html#InterfaceSVGNumber">SVGNumber</a> newItem, unsigned long index);
   <a class="idlinterface" href="types.html#InterfaceSVGNumber">SVGNumber</a> <a href="types.html#__svg__SVGNumberList__replaceItem">replaceItem</a>(<a class="idlinterface" href="types.html#InterfaceSVGNumber">SVGNumber</a> newItem, unsigned long index);
   <a class="idlinterface" href="types.html#InterfaceSVGNumber">SVGNumber</a> <a href="types.html#__svg__SVGNumberList__removeItem">removeItem</a>(unsigned long index);
   <a class="idlinterface" href="types.html#InterfaceSVGNumber">SVGNumber</a> <a href="types.html#__svg__SVGNumberList__appendItem">appendItem</a>(<a class="idlinterface" href="types.html#InterfaceSVGNumber">SVGNumber</a> newItem);
-};</pre><dl class="interface">
+  <a href="#__svg__SVGNumberList__setter">setter</a> void (unsigned long index, <a>SVGNumber</a> newItem);
+};</pre>
+
+<dl class="interface">
 <dt class="attributes-header">Attributes:</dt>
 <dd>
 <dl class="attributes">
 
+<dt id="__svg__SVGNumberList__length" class="attribute first-child"><b>length</b><span class="idl-type-parenthetical"> (readonly unsigned long)</span></dt>
+<dd class="attribute">
+<div>The number of items in the list.</div>
+</dd>
+
 <dt id="__svg__SVGNumberList__numberOfItems" class="attribute first-child"><b>numberOfItems</b><span class="idl-type-parenthetical"> (readonly unsigned long)</span></dt>
 <dd class="attribute">
-<div>
-The number of items in the list.
-
-</div>
-</dd>
+<div>The number of items in the list.</div>
+</dd>
+
 </dl>
 </dd>
 <dt class="operations-header">Operations:</dt>
@@ -2571,6 +2583,11 @@
 </dd>
 </dl>
 </dd>
+<dt id="__svg__SVGNumberList__setter" class="operation"><b>setter</b> void (unsigned long <var>index</var>, <a>SVGNumber</a> <var>newItem</var>)</dt>
+<dd class="operation"><div>Replaces the item at index <var>index</var> with <var>newItem</var>.
+If the list is <a href="#ReadOnlyNumberList">read only</a>, then a
+<a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#nomodificationallowederror">NoModificationAllowedError</a>
+is thrown.</div></dd>
 </dl>
 </dd>
 </dl>
@@ -2924,44 +2941,50 @@
 
 <h3 id="InterfaceSVGLengthList">Interface SVGLengthList</h3>
 
-
-
 <p>This interface defines a list of SVGLength objects.</p>
 
-
 <p><a>SVGLengthList</a> has the same attributes and methods as other
 SVGxxxList interfaces. Implementers may consider using a single base class
-to implement the various SVGxxxList interfaces.
-</p>
-
+to implement the various SVGxxxList interfaces.</p>
+
+<p>The <a href='http://dev.w3.org/2006/webapi/WebIDL/#dfn-supported-property-indices'>supported property indices</a>
+of an <a>SVGLengthList</a> object is all non-negative integers less than
+the length of the list.</p>
 
 <p id="ReadOnlyLengthList">An <a>SVGLengthList</a> object can be designated as <em>read only</em>,
 which means that attempts to modify the object will result in an exception
-being thrown, as described below.
-</p>
+being thrown, as described below.</p>
+
 <pre class="idl">interface <b>SVGLengthList</b> {
 
+  readonly attribute unsigned long <a href="types.html#__svg__SVGLengthList__length">length</a>;
   readonly attribute unsigned long <a href="types.html#__svg__SVGLengthList__numberOfItems">numberOfItems</a>;
 
   void <a href="types.html#__svg__SVGLengthList__clear">clear</a>();
   <a class="idlinterface" href="types.html#InterfaceSVGLength">SVGLength</a> <a href="types.html#__svg__SVGLengthList__initialize">initialize</a>(<a class="idlinterface" href="types.html#InterfaceSVGLength">SVGLength</a> newItem);
-  <a class="idlinterface" href="types.html#InterfaceSVGLength">SVGLength</a> <a href="types.html#__svg__SVGLengthList__getItem">getItem</a>(unsigned long index);
+  getter <a class="idlinterface" href="types.html#InterfaceSVGLength">SVGLength</a> <a href="types.html#__svg__SVGLengthList__getItem">getItem</a>(unsigned long index);
   <a class="idlinterface" href="types.html#InterfaceSVGLength">SVGLength</a> <a href="types.html#__svg__SVGLengthList__insertItemBefore">insertItemBefore</a>(<a class="idlinterface" href="types.html#InterfaceSVGLength">SVGLength</a> newItem, unsigned long index);
   <a class="idlinterface" href="types.html#InterfaceSVGLength">SVGLength</a> <a href="types.html#__svg__SVGLengthList__replaceItem">replaceItem</a>(<a class="idlinterface" href="types.html#InterfaceSVGLength">SVGLength</a> newItem, unsigned long index);
   <a class="idlinterface" href="types.html#InterfaceSVGLength">SVGLength</a> <a href="types.html#__svg__SVGLengthList__removeItem">removeItem</a>(unsigned long index);
   <a class="idlinterface" href="types.html#InterfaceSVGLength">SVGLength</a> <a href="types.html#__svg__SVGLengthList__appendItem">appendItem</a>(<a class="idlinterface" href="types.html#InterfaceSVGLength">SVGLength</a> newItem);
-};</pre><dl class="interface">
+  <a href="#__svg__SVGLengthList__setter">setter</a> void (unsigned long index, <a>SVGLength</a> newItem);
+};</pre>
+
+<dl class="interface">
 <dt class="attributes-header">Attributes:</dt>
 <dd>
 <dl class="attributes">
 
+<dt id="__svg__SVGLengthList__length" class="attribute first-child"><b>length</b><span class="idl-type-parenthetical"> (readonly unsigned long)</span></dt>
+<dd class="attribute">
+  <div>The number of items in the list.</div>
+</dd>
+
 <dt id="__svg__SVGLengthList__numberOfItems" class="attribute first-child"><b>numberOfItems</b><span class="idl-type-parenthetical"> (readonly unsigned long)</span></dt>
 <dd class="attribute">
-<div>
-The number of items in the list.
-
-</div>
-</dd>
+  <div>The number of items in the list.</div>
+</dd>
+
 </dl>
 </dd>
 <dt class="operations-header">Operations:</dt>
@@ -3291,6 +3314,11 @@
 </dd>
 </dl>
 </dd>
+<dt id="__svg__SVGLengthList__setter" class="operation"><b>setter</b> void (unsigned long <var>index</var>, <a>SVGLength</a> <var>newItem</var>)</dt>
+<dd class="operation"><div>Replaces the item at index <var>index</var> with <var>newItem</var>.
+If the list is <a href="#ReadOnlyLengthList">read only</a>, then a
+<a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#nomodificationallowederror">NoModificationAllowedError</a>
+is thrown.</div></dd>
 </dl>
 </dd>
 </dl>