Change percentage parsing algo to accept double values.
authorSilvia Pfeiffer
Fri, 08 Mar 2013 18:41:22 +1100
changeset 74 17b3b4696208
parent 73 4a2da7420a7c
child 75 48d35535d98e
Change percentage parsing algo to accept double values.
608toVTT/region.html
--- a/608toVTT/region.html	Fri Mar 08 18:11:06 2013 +1100
+++ b/608toVTT/region.html	Fri Mar 08 18:41:22 2013 +1100
@@ -547,15 +547,17 @@
         <ol>
          <li><p>Let <var>input</var> be the string being parsed.</p></li>
 
-         <li><p>If <var>input</var> contains any characters other than U+0025 PERCENT SIGN characters (%) and <span>ASCII digits</span>, then fail.</p></li>
+         <li><p>If <var>input</var> contains any characters other than U+0025 PERCENT SIGN characters (%), U+002E DOT characters (.) and <span>ASCII digits</span>, then fail.</p></li>
 
          <li><p>If <var>input</var> does not contain at least one <a href="http://www.w3.org/TR/html5/single-page.html#ascii-digits" class="externalDFN">ASCII digit</a>, then fail.</p></li>
 
+         <li><p>If <var>input</var> contains more than one U+002E DOT character (.), then fail.</p></li>
+
          <li><p>If any character in <var>input</var> other than the last character is a U+0025 PERCENT SIGN character (%), then fail.</p></li>
 
          <li><p>If the last character in <var>input</var> is not a U+0025 PERCENT SIGN character (%), then fail.</p></li>
-                 
-         <li><p>Ignoring the trailing percent sign, interpret <var>input</var> as a base-ten integer. Let that number be the <var>percentage</var>.</p></li>
+
+         <li><p>Ignoring the trailing percent sign, interpret <var>input</var> as a real number. Let that number be the <var>percentage</var>.</p></li>
 
          <li><p>Return <var>percentage</var>.</p></li>
         </ol>