Add removeRegion(region) function to
authorSilvia Pfeiffer
Fri, 08 Mar 2013 19:35:54 +1100
changeset 76 3f0ef4d6f3a8
parent 75 48d35535d98e
child 77 4803b926f282
Add removeRegion(region) function to
Closes https://www.w3.org/Bugs/Public/show_bug.cgi?id=21191
608toVTT/region.html
--- a/608toVTT/region.html	Fri Mar 08 18:55:02 2013 +1100
+++ b/608toVTT/region.html	Fri Mar 08 19:35:54 2013 +1100
@@ -903,6 +903,9 @@
 
           <dt>void addRegion(TextTrackRegion region)</dt>
           <dd>Adds the given region to <var>TextTrack</var>'s <a href="#text-track-list-of-regions" class="internalDFN">text track list of regions</a>. If that list already contains a region with the same identifier, update that region's attributes with those of <var>region</var>.</dd>
+
+          <dt>void removeRegion(TextTrackRegion region)</dt>
+          <dd>Removes the given region from <var>TextTrack</var>'s <a href="#text-track-list-of-regions" class="internalDFN">text track list of regions</a>.</dd>
         </dl>
 
         <section>
@@ -918,6 +921,14 @@
 
            <p>Otherwise: add <var>region</var> to the method's <code>TextTrack</code> object's <span>text track list of regions</span>.</p></li>
           </ol>
+
+          <p>The <dfn id="dom-TextTrack-removeRegion"><code>removeRegion(<var>region</var>)</code></dfn> method of <code>TextTrack</code> objects, when invoked, must run the following steps:</p>
+      
+          <ol>
+           <li><p>If the given <var>region</var> is not currently listed in the method's <code>TextTrack</code> object's <span>text track list of regions</span>, then throw a NotFoundError exception.</p></li>
+
+           <li><p>Otherwise: remove <var>region</var> from that <span>text track list of regions</span>.</p></li>
+          </ol>
         </section>
       </section>