W3C home > Mailing lists > Public > public-svg-wg@w3.org > July to September 2012

svg2: Use new-style attribute definition tables for 'discard'.

From: SVG Working Group repository <cam@mcc.id.au>
Date: Sat, 15 Sep 2012 12:22:24 -0700
Message-Id: <hg.29073b529af7.1347736944.3034738116371802840@ps58493.dreamhostps.com>
To: public-svg-wg@w3.org
details:   https://svgwg.org/hg/svg2/rev/29073b529af7
branches:  
changeset: 383:29073b529af7
user:      Cameron McCormack <cam@mcc.id.au>
date:      Sun Sep 16 05:21:34 2012 +1000
description:
Use new-style attribute definition tables for 'discard'.

diffstat:

 master/struct.html |  114 +++++++++++++++++++++++++++++-----------------------
 1 files changed, 63 insertions(+), 51 deletions(-)

diffs (134 lines):

diff --git a/master/struct.html b/master/struct.html
--- a/master/struct.html
+++ b/master/struct.html
@@ -751,67 +751,79 @@ are, and an IDL interface needs to be wr
 </p>
 <p>
   The <a href="#DiscardElement"><span class="element-name">'discard'</span></a>
   element may occur wherever the
   <a href="animate.html#AnimateElement"><span class="element-name">'animate'</span></a>
   element may.
 </p>
 
-<div class="adef-list">
-  <p><em>Attribute definitions:</em></p>
-
-  <dl class="definitions">
-    <dt id="DiscardElementHrefAttribute">
-      <span class="adef">href</span> =
-      "<span class="attr-value"><a href="types.html#DataTypeIRI">&lt;iri&gt;</a></span>"
-    </dt>
-    <dd>
-      <p>
-        An <a>IRI reference</a>
-        that identifies the <a href="animate.html#TargetElement">target element</a>
-        to discard.  See the definition of
-        <a href="animate.html#HrefAttribute"><span class="attr-name">'href'</span></a>
-        on <a>animation elements</a> for details on identifying a target
-        element.
-      </p>
-      <p>
-        Note that if the target element is not part of the
-        <a>current SVG document fragment</a>
-        then whether the target element will be removed or not is defined by the
-        host language.
-      </p>
-      <p>
-        If the <a href="#DiscardElementHrefAttribute"><span class="attr-name">'href'</span></a>
-        attribute is not provided, then the target element will be the immediate
-        parent element of the discard element.
-      </p>
-      <p class="anim-target"><a href="animate.html#Animatable">Animatable</a>: no.</p>
-    </dd>
-
-    <dt id="DiscardElementBeginAttribute">
-      <span class="adef">begin</span> = "<span class="attr-value"><a href="animate.html#BeginValueListSyntax">begin-value-list</a></span>"
-    </dt>
-
-    <dd>
-      <p>
-        Indicates when the target element will be discarded.  See the definition
-        of <a href="animate.html#BeginAttribute"><span class="attr-name">'begin'</span></a>
-        on <a>animation elements</a> for details.
-      </p>
-      <p>
-        The <a>lacuna value</a>
-        is <span class="attr-value">'0s'</span>.  This indicates that
-        the <a href="animate.html#TargetElement">target element</a> should be
-        discarded immediately once the document begins.
-      </p>
-      <p class="anim-target"><a href="animate.html#Animatable">Animatable</a>: no.</p>
-    </dd>
-  </dl>
-</div>
+<p><em>Attribute definitions:</em></p>
+
+<dl class="attrdef-list">
+  <dt>
+    <table class="propdef attrdef">
+      <tr>
+        <th>Name</th>
+        <th>Value</th>
+        <th>Lacuna value</th>
+        <th>Animatable</th>
+      </tr>
+      <tr>
+        <td><dfn id="DiscardElementHrefAttribute">href</dfn></td>
+        <td><a>&lt;iri&gt;</a></td>
+        <td>(none)</td>
+        <td>no</td>
+      </tr>
+    </table>
+  </dt>
+  <dd>
+    <p>
+      An <a>IRI reference</a>
+      that identifies the <a href="animate.html#TargetElement">target element</a>
+      to discard.  See the definition of
+      <a href="animate.html#HrefAttribute"><span class="attr-name">'href'</span></a>
+      on <a>animation elements</a> for details on identifying a target
+      element.
+    </p>
+    <p>
+      Note that if the target element is not part of the
+      <a>current SVG document fragment</a>
+      then whether the target element will be removed or not is defined by the
+      host language.
+    </p>
+    <p>
+      If the <a>'href'</a> attribute is not provided, then the target element
+      will be the immediate parent element of the discard element.
+    </p>
+  </dd>
+  <dt>
+    <table class="propdef attrdef">
+      <tr>
+        <th>Name</th>
+        <th>Value</th>
+        <th>Lacuna value</th>
+        <th>Animatable</th>
+      </tr>
+      <tr>
+        <td><dfn id="SVGElementVersionAttribute">begin</dfn></td>
+        <td><a href="animate.html#BeginValueListSyntax">&lt;begin-value-list&gt;</a></td>
+        <td>0s</td>
+        <td>no</td>
+      </tr>
+    </table>
+  </dt>
+  <dd>
+    <p>
+      Indicates when the target element will be discarded.  See the definition
+      of <a href="animate.html#BeginAttribute"><span class="attr-name">'begin'</span></a>
+      on <a>animation elements</a> for details.
+    </p>
+  </dd>
+</dl>
 
 <p>
   The <a href="#DiscardElement"><span class="element-name">'discard'</span></a>
   element has an implicit
   <a href="http://www.w3.org/TR/2008/REC-SMIL3-20081201/smil-timing.html#Timing-DefiningSimpleDur">simple duration</a>
   of <span class="attr-value">"indefinite"</span>.  As soon as the element's
   <a href="http://www.w3.org/TR/2008/REC-SMIL3-20081201/smil-timing.html#Timing-ComputingActiveDur">active duration</a>
   starts, the <a>SVG user agent</a>
Received on Saturday, 15 September 2012 19:23:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 15 September 2012 19:23:32 GMT