W3C home > Mailing lists > Public > public-html-commits@w3.org > October 2011

html5/spec Overview.html,1.5381,1.5382

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 20 Oct 2011 05:54:43 +0000
To: public-html-commits@w3.org
Message-Id: <E1RGlaV-0000N0-Pg@lionel-hutz.w3.org>
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv1393

Modified Files:
	Overview.html 
Log Message:
Make TextTrackCue more mutable. (whatwg r6711)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5381
retrieving revision 1.5382
diff -u -d -r1.5381 -r1.5382
--- Overview.html	20 Oct 2011 00:48:19 -0000	1.5381
+++ Overview.html	20 Oct 2011 05:54:38 -0000	1.5382
@@ -26857,22 +26857,26 @@
   return null.</p>
 
   </div><hr><pre class="idl">
-[<span title="dom-TextTrackCue">Constructor</span>(DOMString id, double startTime, double endTime, DOMString text, optional DOMString settings, optional boolean pauseOnExit)]
+[<a href="#dom-texttrackcue" title="dom-TextTrackCue">Constructor</a>(DOMString id, double startTime, double endTime, DOMString text, optional DOMString settings, optional boolean pauseOnExit)]
 interface <dfn id="texttrackcue">TextTrackCue</dfn> : <a href="#eventtarget">EventTarget</a> {
   readonly attribute <a href="#texttrack">TextTrack</a>? <a href="#dom-texttrackcue-track" title="dom-TextTrackCue-track">track</a>;
-  readonly attribute DOMString <a href="#dom-texttrackcue-id" title="dom-TextTrackCue-id">id</a>;
 
-  readonly attribute double <a href="#dom-texttrackcue-starttime" title="dom-TextTrackCue-startTime">startTime</a>;
-  readonly attribute double <a href="#dom-texttrackcue-endtime" title="dom-TextTrackCue-endTime">endTime</a>;
-  readonly attribute boolean <a href="#dom-texttrackcue-pauseonexit" title="dom-TextTrackCue-pauseOnExit">pauseOnExit</a>;
-
-
-  DOMString <a href="#dom-texttrackcue-getcueassource" title="dom-TextTrackCue-getCueAsSource">getCueAsSource</a>();
+           attribute DOMString <a href="#dom-texttrackcue-id" title="dom-TextTrackCue-id">id</a>;
+           attribute double <a href="#dom-texttrackcue-starttime" title="dom-TextTrackCue-startTime">startTime</a>;
+           attribute double <a href="#dom-texttrackcue-endtime" title="dom-TextTrackCue-endTime">endTime</a>;
+           attribute boolean <a href="#dom-texttrackcue-pauseonexit" title="dom-TextTrackCue-pauseOnExit">pauseOnExit</a>;
+           attribute DOMString <a href="#dom-texttrackcue-direction" title="dom-TextTrackCue-direction">direction</a>;
+           attribute boolean <a href="#dom-texttrackcue-snaptolines" title="dom-TextTrackCue-snapToLines">snapToLines</a>;
+           attribute long <a href="#dom-texttrackcue-lineposition" title="dom-TextTrackCue-linePosition">linePosition</a>;
+           attribute long <a href="#dom-texttrackcue-textposition" title="dom-TextTrackCue-textPosition">textPosition</a>;
+           attribute long <a href="#dom-texttrackcue-size" title="dom-TextTrackCue-size">size</a>;
+           attribute DOMString <a href="#dom-texttrackcue-alignment" title="dom-TextTrackCue-alignment">alignment</a>;
+           attribute DOMString <a href="#dom-texttrackcue-cueassource" title="dom-TextTrackCue-cueAsSource">cueAsSource</a>();
   <a href="#documentfragment">DocumentFragment</a> <a href="#dom-texttrackcue-getcueashtml" title="dom-TextTrackCue-getCueAsHTML">getCueAsHTML</a>();
 
   [TreatNonCallableAsNull] attribute <a href="#function">Function</a>? <a href="#handler-texttrackcue-onenter" title="handler-TextTrackCue-onenter">onenter</a>;
   [TreatNonCallableAsNull] attribute <a href="#function">Function</a>? <a href="#handler-texttrackcue-onexit" title="handler-TextTrackCue-onexit">onexit</a>;
-};</pre><dl class="domintro"><dt><var title="">cue</var> = new <code title="dom-TextTrackCue">TextTrackCue</code>( <var title="">id</var>, <var title="">startTime</var>, <var title="">endTime</var>, <var title="">text</var> [, <var title="">settings</var> [, <var title="">pauseOnExit</var> ] ] )</dt>
+};</pre><dl class="domintro"><dt><var title="">cue</var> = new <code title="dom-TextTrackCue"><a href="#dom-texttrackcue">TextTrackCue</a></code>( <var title="">id</var>, <var title="">startTime</var>, <var title="">endTime</var>, <var title="">text</var> [, <var title="">settings</var> [, <var title="">pauseOnExit</var> ] ] )</dt>
    <dd>
     <p>Returns a new <code><a href="#texttrackcue">TextTrackCue</a></code> object, for use with the <code title="dom-TextTrack-addCue"><a href="#dom-texttrack-addcue">addCue()</a></code> method.</p>
     <p>The <var title="">id</var> argument sets the <a href="#text-track-cue-identifier">text track cue identifier</a>.</p>
@@ -26890,72 +26894,194 @@
     otherwise.</p>
    </dd>
 
-   <dt><var title="">cue</var> . <a href="#dom-texttrackcue-id" title="dom-TextTrackCue-id">id</a></dt>
+   <dt><var title="">cue</var> . <a href="#dom-texttrackcue-id" title="dom-TextTrackCue-id">id</a> [ = <var title="">value</var> ]</dt>
    <dd>
     <p>Returns the <a href="#text-track-cue-identifier">text track cue identifier</a>.</p>
+    <p>Can be set.</p>
    </dd>
 
-   <dt><var title="">cue</var> . <a href="#dom-texttrackcue-starttime" title="dom-TextTrackCue-startTime">startTime</a></dt>
+   <dt><var title="">cue</var> . <a href="#dom-texttrackcue-starttime" title="dom-TextTrackCue-startTime">startTime</a> [ = <var title="">value</var> ]</dt>
    <dd>
     <p>Returns the <a href="#text-track-cue-start-time">text track cue start time</a>, in seconds.</p>
+    <p>Can be set.</p>
    </dd>
 
-   <dt><var title="">cue</var> . <a href="#dom-texttrackcue-endtime" title="dom-TextTrackCue-endTime">endTime</a></dt>
+   <dt><var title="">cue</var> . <a href="#dom-texttrackcue-endtime" title="dom-TextTrackCue-endTime">endTime</a> [ = <var title="">value</var> ]</dt>
    <dd>
     <p>Returns the <a href="#text-track-cue-end-time">text track cue end time</a>, in seconds.</p>
+    <p>Can be set.</p>
    </dd>
 
-   <dt><var title="">cue</var> . <a href="#dom-texttrackcue-pauseonexit" title="dom-TextTrackCue-pauseOnExit">pauseOnExit</a></dt>
+   <dt><var title="">cue</var> . <a href="#dom-texttrackcue-pauseonexit" title="dom-TextTrackCue-pauseOnExit">pauseOnExit</a> [ = <var title="">value</var> ]</dt>
    <dd>
     <p>Returns true if the <a href="#text-track-cue-pause-on-exit-flag">text track cue pause-on-exit flag</a> is set, false otherwise.</p>
+    <p>Can be set.</p>
+   </dd>
+
+   <dt><var title="">cue</var> . <a href="#dom-texttrackcue-direction" title="dom-TextTrackCue-direction">direction</a> [ = <var title="">value</var> ]</dt>
+   <dd>
+    <p>Returns a string representing the <a href="#text-track-cue-writing-direction">text track cue writing direction</a>, as follows:</p>
+    <dl class="switch"><dt>If it is <a href="#text-track-cue-horizontal-writing-direction" title="text track cue horizontal writing direction">horizontal</a></dt>
+     <dd><p>The string "<code title="">horizontal</code>".</dd>
+     <dt>If it is <a href="#text-track-cue-vertical-growing-left-writing-direction" title="text track cue vertical growing left writing direction">vertical growing left</a></dt>
+     <dd><p>The string "<code title="">vertical</code>".</dd>
+     <dt>If it is <a href="#text-track-cue-vertical-growing-right-writing-direction" title="text track cue vertical growing right writing direction">vertical growing right</a></dt>
+     <dd><p>The string "<code title="">vertical-lr</code>".</dd>
+    </dl><p>Can be set.</p>
    </dd>
 
+   <dt><var title="">cue</var> . <a href="#dom-texttrackcue-snaptolines" title="dom-TextTrackCue-snapToLines">snapToLines</a> [ = <var title="">value</var> ]</dt>
+   <dd>
+    <p>Returns true if the <span>text track cue snap-to-lines flag</span> is set, false otherwise.</p>
+    <p>Can be set.</p>
+   </dd>
 
-   <dt><var title="">source</var> = <var title="">cue</var> . <a href="#dom-texttrackcue-getcueassource" title="dom-TextTrackCue-getCueAsSource">getCueAsSource</a>()</dt>
+   <dt><var title="">cue</var> . <a href="#dom-texttrackcue-lineposition" title="dom-TextTrackCue-linePosition">linePosition</a> [ = <var title="">value</var> ]</dt>
+   <dd>
+    <p>Returns the <span>text track cue line position</span>. In the
+    case of the value being <span title="text track cue automatic
+    line position">auto</span>, the appropriate default is returned.</p>
+    <p>Can be set.</p>
+   </dd>
+
+   <dt><var title="">cue</var> . <a href="#dom-texttrackcue-textposition" title="dom-TextTrackCue-textPosition">textPosition</a> [ = <var title="">value</var> ]</dt>
+   <dd>
+    <p>Returns the <span>text track cue text position</span>.</p>
+    <p>Can be set.</p>
+   </dd>
+
+   <dt><var title="">cue</var> . <a href="#dom-texttrackcue-size" title="dom-TextTrackCue-size">size</a> [ = <var title="">value</var> ]</dt>
+   <dd>
+    <p>Returns the <a href="#text-track-cue-size">text track cue size</a>.</p>
+    <p>Can be set.</p>
+   </dd>
+
+   <dt><var title="">cue</var> . <a href="#dom-texttrackcue-alignment" title="dom-TextTrackCue-alignment">alignment</a> [ = <var title="">value</var> ]</dt>
+   <dd>
+    <p>Returns a string representing the <span>text track cue alignment</span>, as follows:</p>
+    <dl class="switch"><dt>If it is <span title="text track cue start alignment">start alignment</span></dt>
+     <dd><p>The string "<code title="">start</code>".</dd>
+     <dt>If it is <span title="text track cue middle alignment">middle alignment</span></dt>
+     <dd><p>The string "<code title="">middle</code>".</dd>
+     <dt>If it is <span title="text track cue end alignment">end alignment</span></dt>
+     <dd><p>The string "<code title="">end</code>".</dd>
+    </dl><p>Can be set.</p>
+   </dd>
+
+   <dt><var title="">cue</var> . <a href="#dom-texttrackcue-cueassource" title="dom-TextTrackCue-cueAsSource">cueAsSource</a> [ = <var title="">value</var> ]</dt>
    <dd>
     <p>Returns the <a href="#text-track-cue-text">text track cue text</a> in raw unparsed form.</p>
+    <p>Can be set.</p>
    </dd>
 
    <dt><var title="">fragment</var> = <var title="">cue</var> . <a href="#dom-texttrackcue-getcueashtml" title="dom-TextTrackCue-getCueAsHTML">getCueAsHTML</a>()</dt>
    <dd>
     <p>Returns the <a href="#text-track-cue-text">text track cue text</a> as a <code><a href="#documentfragment">DocumentFragment</a></code> of <a href="#html-elements">HTML elements</a> and other DOM nodes.</p>
+    <p>Can be set.</p>
    </dd>
 
   </dl><div class="impl">
 
+  <p>The <dfn id="dom-texttrackcue" title="dom-TextTrackCue"><code>TextTrackCue(<var title="">id</var>, <var title="">startTime</var>, <var title="">endTime</var>, <var title="">text</var>, <var title="">settings</var>, <var title="">pauseOnExit</var>)</code></dfn> constructor, when invoked,
+  must run the following steps:</p>
 
-  <p>The <dfn id="dom-texttrackcue-track" title="dom-TextTrackCue-track"><code>track</code></dfn>
-  attribute must return the <code><a href="#texttrack">TextTrack</a></code> object of the
-  <a href="#text-track">text track</a> with which the <a href="#text-track-cue">text track cue</a>
-  that the <code><a href="#texttrackcue">TextTrackCue</a></code> object represents is associated,
-  if any; or null otherwise.</p>
+  <ol><li><p>Create a new <a href="#text-track-cue">text track cue</a> that is not
+   associated with any <a href="#text-track">text track</a>. Let <var title="">cue</var> be that <a href="#text-track-cue">text track cue</a>.</li>
+
+   <li><p>Let <var title="">cue</var>'s <a href="#text-track-cue-identifier">text track cue
+   identifier</a> be the value of the <var title="">id</var>
+   argument.</li>
+
+   <li><p>Let <var title="">cue</var>'s <a href="#text-track-cue-start-time">text track cue start
+   time</a> be the value of the <var title="">startTime</var>
+   argument, interpreted as a time in seconds.</li>
+
+   <li><p>Let <var title="">cue</var>'s <a href="#text-track-cue-end-time">text track cue end
+   time</a> be the value of the <var title="">endTime</var>
+   argument, interpreted as a time in seconds.</li>
+
+   <li><p>Let <var title="">cue</var>'s <a href="#text-track-cue-pause-on-exit-flag">text track cue
+   pause-on-exit flag</a> be true if the <var title="">pauseOnExit</var> is present and true. Otherwise, let it
+   be false.</li>
+
+   <li><p>Let <var title="">cue</var>'s <a href="#text-track-cue-text">text track cue
+   text</a> be the value of the <var title="">text</var> argument,
+   and let the rules for its interpretation be the <span>WebVTT cue
+   text parsing rules</span>, the <a href="#webvtt-cue-text-rendering-rules">WebVTT cue text rendering
+   rules</a>, and the <span>WebVTT cue text DOM construction
+   rules</span>.</li>
+
+   
+
+   <li><p>Let <var title="">cue</var>'s <a href="#text-track-cue-writing-direction">text track cue
+   writing direction</a> be <a href="#text-track-cue-horizontal-writing-direction" title="text track cue
+   horizontal writing direction">horizontal</a>.</li>
+
+   <li><p>Let <var title="">cue</var>'s <span>text track cue
+   snap-to-lines flag</span> be true.</li>
+
+   <li><p>Let <var title="">cue</var>'s <span>text track cue line
+   position</span> be <span title="text track cue automatic line
+   position">auto</span>.</li>
+
+   <li><p>Let <var title="">cue</var>'s <span>text track cue
+   text position</span> be 50.</li>
+
+   <li><p>Let <var title="">cue</var>'s <a href="#text-track-cue-size">text track cue
+   size</a> be 100.</li>
+
+   <li><p>Let <var title="">cue</var>'s <span>text track cue
+   alignment</span> be <span title="text track cue middle
+   alignment">middle alignment</span>.</li>
+
+   <li><p>Let <var title="">input</var> be the string given by the
+   <var title="">settings</var> argument.</li>
+
+   <li><p>Let <var title="">position</var> be a pointer into <var title="">input</var>, initially pointing at the start of the
+   string.</li>
+
+   <li><p><span>Parse the WebVTT settings</span> for <var title="">cue</var>.</li>
+
+   <li><p>Return the <code><a href="#texttrackcue">TextTrackCue</a></code> object representing
+   <var title="">cue</var>.</li>
+
+  </ol><p>The <dfn id="dom-texttrackcue-track" title="dom-TextTrackCue-track"><code>track</code></dfn>
+  attribute, on getting, must return the <code><a href="#texttrack">TextTrack</a></code> object
+  of the <a href="#text-track">text track</a> with which the <a href="#text-track-cue">text track
+  cue</a> that the <code><a href="#texttrackcue">TextTrackCue</a></code> object represents is
+  associated, if any; or null otherwise.</p>
 
   <p>The <dfn id="dom-texttrackcue-id" title="dom-TextTrackCue-id"><code>id</code></dfn>
-  attribute must return the <a href="#text-track-cue-identifier">text track cue identifier</a> of
-  the <a href="#text-track-cue">text track cue</a> that the <code><a href="#texttrackcue">TextTrackCue</a></code>
-  object represents.</p>
+  attribute, on getting, must return the <a href="#text-track-cue-identifier">text track cue
+  identifier</a> of the <a href="#text-track-cue">text track cue</a> that the
+  <code><a href="#texttrackcue">TextTrackCue</a></code> object represents. On setting, the <a href="#text-track-cue-identifier">text track cue
+  identifier</a> must be set to the new value.</p>
 
   <p>The <dfn id="dom-texttrackcue-starttime" title="dom-TextTrackCue-startTime"><code>startTime</code></dfn>
-  attribute must return the <a href="#text-track-cue-start-time">text track cue start time</a> of
-  the <a href="#text-track-cue">text track cue</a> that the <code><a href="#texttrackcue">TextTrackCue</a></code>
-  object represents, in seconds.</p>
+  attribute, on getting, must return the <a href="#text-track-cue-start-time">text track cue start
+  time</a> of the <a href="#text-track-cue">text track cue</a> that the
+  <code><a href="#texttrackcue">TextTrackCue</a></code> object represents, in seconds. On setting, the <a href="#text-track-cue-start-time">text track cue start
+  time</a> must be set to the new value, interpreted in seconds.</p>
 
   <p>The <dfn id="dom-texttrackcue-endtime" title="dom-TextTrackCue-endTime"><code>endTime</code></dfn>
-  attribute must return the <a href="#text-track-cue-end-time">text track cue end time</a> of
-  the <a href="#text-track-cue">text track cue</a> that the <code><a href="#texttrackcue">TextTrackCue</a></code>
-  object represents, in seconds.</p>
+  attribute, on getting, must return the <a href="#text-track-cue-end-time">text track cue end
+  time</a> of the <a href="#text-track-cue">text track cue</a> that the
+  <code><a href="#texttrackcue">TextTrackCue</a></code> object represents, in seconds. On setting, the <a href="#text-track-cue-end-time">text track cue end
+  time</a> must be set to the new value, interpreted in seconds.</p>
 
   <p>The <dfn id="dom-texttrackcue-pauseonexit" title="dom-TextTrackCue-pauseOnExit"><code>pauseOnExit</code></dfn>
-  attribute must return true if the <a href="#text-track-cue-pause-on-exit-flag">text track cue
+  attribute, on getting, must return true if the <a href="#text-track-cue-pause-on-exit-flag">text track cue
   pause-on-exit flag</a> of the <a href="#text-track-cue">text track cue</a> that
   the <code><a href="#texttrackcue">TextTrackCue</a></code> object represents is set; or false
+  otherwise. On setting, the <a href="#text-track-cue-pause-on-exit-flag">text track cue pause-on-exit
+  flag</a> must be set if the new value is true, and must be unset
   otherwise.</p>
 
   <p>The <dfn id="dom-texttrackcue-direction" title="dom-TextTrackCue-direction"><code>direction</code></dfn>
-  attribute must return the string from the second cell of the row in
-  the table below whose first cell is the <a href="#text-track-cue-writing-direction">text track cue
-  writing direction</a> of the <a href="#text-track-cue">text track cue</a> that the
-  <code><a href="#texttrackcue">TextTrackCue</a></code> object represents:</p>
+  attribute, on getting, must return the string from the second cell
+  of the row in the table below whose first cell is the <a href="#text-track-cue-writing-direction">text
+  track cue writing direction</a> of the <a href="#text-track-cue">text track
+  cue</a> that the <code><a href="#texttrackcue">TextTrackCue</a></code> object represents:</p>
 
   <table><thead><tr><th> <a href="#text-track-cue-writing-direction">Text track cue writing direction</a>
          <th> <code title="dom-TextTrackCue-direction"><a href="#dom-texttrackcue-direction">direction</a></code> value
@@ -26965,8 +27091,97 @@
          <td> "<code title="">vertical</code>"
     <tr><td> <a href="#text-track-cue-vertical-growing-right-writing-direction" title="text track cue vertical growing right writing direction">Vertical growing right</a>
          <td> "<code title="">vertical-lr</code>"
-  </table><p>The <dfn id="dom-texttrackcue-getcueassource" title="dom-TextTrackCue-getCueAsSource"><code>getCueAsSource()</code></dfn>
-  method must return the raw <a href="#text-track-cue-text">text track cue text</a>.</p>
+  </table><p>On setting, the <a href="#text-track-cue-writing-direction">text track cue writing direction</a>
+  must be set to the value given in the first cell of the row in the
+  table above whose second cell is a <a href="#case-sensitive">case-sensitive</a> match
+  for the new value, if any. If none of the values match, then the
+  user agent must instead throw a <code><a href="#syntaxerror">SyntaxError</a></code>
+  exception.</p>
+
+  <p>The <dfn id="dom-texttrackcue-snaptolines" title="dom-TextTrackCue-snapToLines"><code>snapToLines</code></dfn>
+  attribute, on getting, must return true if the <span>text track cue
+  snap-to-lines flag</span> of the <a href="#text-track-cue">text track cue</a> that
+  the <code><a href="#texttrackcue">TextTrackCue</a></code> object represents is set; or false
+  otherwise. On setting, the <span>text track cue snap-to-lines
+  flag</span> must be set if the new value is true, and must be unset
+  otherwise.</p>
+
+  <p>The <dfn id="dom-texttrackcue-lineposition" title="dom-TextTrackCue-linePosition"><code>linePosition</code></dfn>
+  attribute, on getting, must return the <span>text track cue line
+  position</span> of the <a href="#text-track-cue">text track cue</a> that the
+  <code><a href="#texttrackcue">TextTrackCue</a></code> object represents, if that value is
+  numeric. Otherwise, the value is the special value <span title="text
+  track cue automatic line position">auto</span>; if the <span>text
+  track cue snap-to-lines flag</span> of the <a href="#text-track-cue">text track
+  cue</a> that the <code><a href="#texttrackcue">TextTrackCue</a></code> object represents is
+  not set, the attribute must return the value 100; otherwise, it must
+  return the value returned by the following algorithm:</p>
+
+  <ol><li><p>Let <var title="">cue</var> be the <a href="#text-track-cue">text track
+   cue</a> that the <code><a href="#texttrackcue">TextTrackCue</a></code> object
+   represents.</li>
+
+   <li><p>If <var title="">cue</var> is not associated with a
+   <a href="#text-track">text track</a>, return &minus;1 and abort these
+   steps.</li>
+
+   <li><p>Let <var title="">track</var> be the <a href="#text-track">text track</a>
+   that the <var title="">cue</var> is associated with.</li>
+
+   <li><p>Let <var title="">n</var> be the number of <a href="#text-track" title="text
+   track">text tracks</a> whose <a href="#text-track-mode">text track mode</a> is
+   <a href="#text-track-showing" title="text track showing">showing</a> or <a href="#text-track-showing-by-default" title="text track showing by default">showing by default</a> and
+   that are in the <a href="#media-element">media element</a>'s <a href="#list-of-text-tracks">list of text
+   tracks</a> before <var title="">track</var>.</li>
+
+   <li><p>Return <var title="">n</var>.</li>
+
+  </ol><p>On setting, if the <span>text track cue snap-to-lines flag</span>
+  is not set, and the new value is negative or greater than 100, then
+  throw an <code><a href="#indexsizeerror">IndexSizeError</a></code> exception. Otherwise, set the
+  <span>text track cue line position</span> to the new value.</p>
+
+  <p class="note">There is no way to explicitly set the <span>text
+  track cue line position</span> to the special default <span title="text track cue automatic line position">auto</span>
+  value.</p>
+
+  <p>The <dfn id="dom-texttrackcue-textposition" title="dom-TextTrackCue-textPosition"><code>textPosition</code></dfn>
+  attribute, on getting, must return the <span>text track cue text
+  position</span> of the <a href="#text-track-cue">text track cue</a> that the
+  <code><a href="#texttrackcue">TextTrackCue</a></code> object represents. On setting, if the new
+  value is negative or greater than 100, then throw an
+  <code><a href="#indexsizeerror">IndexSizeError</a></code> exception. Otherwise, set the <span>text
+  track cue text position</span> to the new value.</p>
+
+  <p>The <dfn id="dom-texttrackcue-size" title="dom-TextTrackCue-size"><code>size</code></dfn>
+  attribute, on getting, must return the <a href="#text-track-cue-size">text track cue
+  size</a> of the <a href="#text-track-cue">text track cue</a> that the
+  <code><a href="#texttrackcue">TextTrackCue</a></code> object represents. On setting, if the new
+  value is negative or greater than 100, then throw an
+  <code><a href="#indexsizeerror">IndexSizeError</a></code> exception. Otherwise, set the <a href="#text-track-cue-size">text
+  track cue size</a> to the new value.</p>
+
+  <p>The <dfn id="dom-texttrackcue-alignment" title="dom-TextTrackCue-alignment"><code>alignment</code></dfn>
+  attribute, on getting, must return the string from the second cell
+  of the row in the table below whose first cell is the <span>text
+  track cue alignment</span> of the <a href="#text-track-cue">text track cue</a> that
+  the <code><a href="#texttrackcue">TextTrackCue</a></code> object represents:</p>
+
+  <table><thead><tr><th><span>Text track cue alignment</span> <th> <code title="dom-TextTrackCue-alignment"><a href="#dom-texttrackcue-alignment">alignment</a></code> value
+   <tbody><tr><td><span title="text track cue start alignment">Start alignment</span> <td> "<code title="">start</code>"
+    <tr><td><span title="text track cue middle alignment">Middle alignment</span> <td> "<code title="">middle</code>"
+    <tr><td><span title="text track cue end alignment">End alignment</span> <td> "<code title="">end</code>"
+  </table><p>On setting, the <span>text track cue alignment</span> must be set
+  to the value given in the first cell of the row in the table above
+  whose second cell is a <a href="#case-sensitive">case-sensitive</a> match for the new
+  value, if any. If none of the values match, then the user agent must
+  instead throw a <code><a href="#syntaxerror">SyntaxError</a></code> exception.</p>
+
+  <p>The <dfn id="dom-texttrackcue-cueassource" title="dom-TextTrackCue-cueAsSource"><code>cueAsSource</code></dfn>
+  attribute, on getting, must return the raw <a href="#text-track-cue-text">text track cue
+  text</a> of the <a href="#text-track-cue">text track cue</a> that the
+  <code><a href="#texttrackcue">TextTrackCue</a></code> object represents. On setting, the
+  <a href="#text-track-cue-text">text track cue text</a> must be set to the new value.</p>
 
   <p>The <dfn id="dom-texttrackcue-getcueashtml" title="dom-TextTrackCue-getCueAsHTML"><code>getCueAsHTML()</code></dfn>
   method must convert the <a href="#text-track-cue-text">text track cue text</a> to a
Received on Thursday, 20 October 2011 05:54:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 20 October 2011 05:54:51 GMT