HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2333Turns out that embed, object, and iframe reflect strings for .height and .width, not numbers. Go figure.2008-10-15 20:15
@@ -15976,22 +15976,22 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>
    <dd><code title="attr-iframe-seamless">seamless</code></dd>
    <dd><code title="attr-dim-width">width</code></dd>
    <dd><code title="attr-dim-height">height</code></dd>
    <dt>DOM interface:</dt>
    <dd>
 <pre class="idl">interface <dfn>HTMLIFrameElement</dfn> : <span>HTMLElement</span> {
            attribute DOMString <span title="dom-iframe-src">src</span>;
            attribute DOMString <span title="dom-iframe-name">name</span>;
            attribute DOMString <span title="dom-iframe-sandbox">sandbox</span>;
            attribute boolean <span title="dom-iframe-seamless">seamless</span>;
-           attribute unsigned long <span title="dom-dim-width">width</span>;
-           attribute unsigned long <span title="dom-dim-height">height</span>;
+           attribute DOMString <span title="dom-dim-width">width</span>;
+           attribute DOMString <span title="dom-dim-height">height</span>;
 <!-- XXX we should bring these back since the Window spec has atrophied
   readonly attribute Document <span title="dom-iframe-contentDocument">contentDocument</span>;
   readonly attribute <span>Window</span> <span title="dom-iframe-contentWindow">contentWindow</span>;
 -->};</pre>
     <p>Objects implementing the <code>HTMLIFrameElement</code>
     interface must also implement the <code>EmbeddingElement</code>
     interface defined in the Window Object specification. <a
     href="#refsWINDOW">[WINDOW]</a></p> <!-- XXX -->
    </dd>
   </dl>
@@ -16435,22 +16435,22 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>
    <dd><code title="attr-embed-src">src</code></dd>
    <dd><code title="attr-embed-type">type</code></dd>
    <dd><code title="attr-dim-width">width</code></dd>
    <dd><code title="attr-dim-height">height</code></dd>
    <dd>Any other attribute that has no namespace (see prose).</dd>
    <dt>DOM interface:</dt>
    <dd>
 <pre class="idl">interface <dfn>HTMLEmbedElement</dfn> : <span>HTMLElement</span> {
            attribute DOMString <span title="dom-embed-src">src</span>;
            attribute DOMString <span title="dom-embed-type">type</span>;
-           attribute unsigned long <span title="dom-dim-width">width</span>;
-           attribute unsigned long <span title="dom-dim-height">height</span>;
+           attribute DOMString <span title="dom-dim-width">width</span>;
+           attribute DOMString <span title="dom-dim-height">height</span>;
 };</pre>
     <p>Depending on the type of content instantiated by the
     <code>embed</code> element, the node may also support other
     interfaces.</p>
    </dd>
   </dl>
 
   <p>The <code>embed</code> element represents an integration point
   for an external (typically non-HTML) application or interactive
   content.</p>
@@ -16623,22 +16623,22 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>
    <dd><code title="attr-hyperlink-usemap">usemap</code></dd>
    <dd><code title="attr-dim-width">width</code></dd>
    <dd><code title="attr-dim-height">height</code></dd>
    <dt>DOM interface:</dt>
    <dd>
 <pre class="idl">interface <dfn>HTMLObjectElement</dfn> : <span>HTMLElement</span> {
            attribute DOMString <span title="dom-object-data">data</span>;
            attribute DOMString <span title="dom-object-type">type</span>;
            attribute DOMString <span title="dom-object-name">name</span>;
            attribute DOMString <span title="dom-object-useMap">useMap</span>;
-           attribute unsigned long <span title="dom-dim-width">width</span>;
-           attribute unsigned long <span title="dom-dim-height">height</span>;<!--
+           attribute DOMString <span title="dom-dim-width">width</span>;
+           attribute DOMString <span title="dom-dim-height">height</span>;<!--
   readonly attribute Document <span title="dom-object-contentDocument">contentDocument</span>;
   readonly attribute <span>Window</span> <span title="dom-object-contentWindow">contentWindow</span>;-->
 };</pre>
     <p>Objects implementing the <code>HTMLObjectElement</code>
     interface must also implement the <code>EmbeddingElement</code>
     interface defined in the Window Object specification. <a
     href="#refsWINDOW">[WINDOW]</a></p>
     <p>Depending on the type of content instantiated by the
     <code>object</code> element, the node may also support other
     interfaces.</p>
@@ -17082,22 +17082,22 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>
    <dd><code title="attr-media-loopstart">loopstart</code></dd>
    <dd><code title="attr-media-loopend">loopend</code></dd>
    <dd><code title="attr-media-end">end</code></dd>
    <dd><code title="attr-media-playcount">playcount</code></dd>
    <dd><code title="attr-media-controls">controls</code></dd>
    <dd><code title="attr-dim-width">width</code></dd>
    <dd><code title="attr-dim-height">height</code></dd>
    <dt>DOM interface:</dt>
    <dd>
     <pre class="idl">interface <dfn>HTMLVideoElement</dfn> : <span>HTMLMediaElement</span> {
-           attribute unsigned long <span title="dom-dim-width">width</span>;
-           attribute unsigned long <span title="dom-dim-height">height</span>;
+           attribute DOMString <span title="dom-dim-width">width</span>;
+           attribute DOMString <span title="dom-dim-height">height</span>;
   readonly attribute unsigned long <span title="dom-video-videoWidth">videoWidth</span>;
   readonly attribute unsigned long <span title="dom-video-videoHeight">videoHeight</span>;
            attribute DOMString <span title="dom-video-poster">poster</span>;
 };</pre>
    </dd>
   </dl>
 
   <p>A <code>video</code> element represents a video or movie.</p>
 
   <p>Content may be provided inside the <code>video</code>
@@ -18022,25 +18022,24 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {
    lost without affecting the media playback.</dd>
 
   </dl>
 
   <p>The algorithm for the <code title="dom-media-load">load()</code>
   method defined below describes exactly when the <code
   title="dom-media-networkState">networkState</code> attribute changes
   value and what events fire to indicate changes in this state.</p>
 
   <p class="note">Some resources, e.g. streaming Web radio, can never
-  each the <code
+  reach the <code
   title="dom-media-NETWORK_LOADED">NETWORK_LOADED</code> state.</p>
 
 
-
   <h5>Loading the media resource</h5>
 
   <p>All <span title="media element">media elements</span> have a
   <dfn>begun flag</dfn>, which must begin in the false state, and an
   <dfn>autoplaying flag</dfn>, which must begin in the true state.</p>
 
   <p>When the <dfn title="dom-media-load"><code>load()</code></dfn>
   method on a <span>media element</span> is invoked, the user agent
   must run the following steps. Note that this algorithm might get
   aborted, e.g. if the <code title="dom-media-load">load()</code>
@@ -23096,26 +23095,27 @@ function AddCloud(data, x, y) { ... }</pre>
   <p>To enable authors to use SVG tools that only accept SVG in its
   XML form, interactive HTML user agents are encouraged to provide a
   way to export any SVG fragment as a namespace-well-formed XML
   fragment.</p>
 
 
   <h4><dfn>Dimension attributes</dfn></h4>
 
   <p>The <dfn title="attr-dim-width"><code>width</code></dfn> and <dfn
   title="attr-dim-height"><code>height</code></dfn> attributes on
-  <code>img</code>, <code>embed</code>, <code>object</code>, and
-  <code>video</code> elements may be specified to give the dimensions
-  of the visual content of the element (the width and height
-  respectively, relative to the nominal direction of the output
-  medium), in CSS pixels. The attributes, if specified, must have
-  values that are <span>valid positive non-zero integers</span>.</p>
+  <code>img</code>, <code>iframe</code>, <code>embed</code>,
+  <code>object</code>, and <code>video</code> elements may be
+  specified to give the dimensions of the visual content of the
+  element (the width and height respectively, relative to the nominal
+  direction of the output medium), in CSS pixels. The attributes, if
+  specified, must have values that are <span>valid positive non-zero
+  integers</span>.</p>
 
   <p>The specified dimensions given may differ from the dimensions
   specified in the resource itself, since the resource may have a
   resolution that differs from the CSS pixel resolution. (On screens,
   CSS pixels have a resolution of 96ppi, but in general the CSS pixel
   resolution depends on the reading distance.) If both attributes are
   specified, then the ratio of the specified width to the specified
   height must be the same as the ratio of the intrinsic width to the
   intrinsic height in the resource, or alternatively, in the case of
   the <code>video</code> element, the same as the <span
@@ -23127,23 +23127,23 @@ function AddCloud(data, x, y) { ... }</pre>
   parsing dimension values</span>. This will return either an integer
   length, a percentage value, or nothing. The user agent requirements
   for processing the values obtained from parsing these attributes are
   described <span title="sizing of embedded content">in the rendering
   section</span><!-- XXX xref -->. If one of these attributes, when
   parsing, returns no value, it must be treated, for the purposes of
   those requirements, as if it was not specified.</p>
 
   <p>The <dfn title="dom-dim-width"><code>width</code></dfn> and <dfn
   title="dom-dim-height"><code>height</code></dfn> DOM attributes on
-  the <code>embed</code>, <code>object</code>, and <code>video</code>
-  elements must <span>reflect</span> the respective content attributes
-  of the same name.</p>
+  the <code>iframe</code>, <code>embed</code>, <code>object</code>,
+  and <code>video</code> elements must <span>reflect</span> the
+  respective content attributes of the same name.</p>
 
 
 
 
   <h3>Tabular data</h3>
 
   <h4 id="table-intro">Introduction</h4>
 
   <p><em>This section is non-normative.</em></p>
 

|