HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/2333

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
Index: source
===================================================================
--- source	(revision 2332)
+++ source	(revision 2333)
@@ -15983,8 +15983,8 @@
            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>;
@@ -16442,8 +16442,8 @@
 <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
@@ -16630,8 +16630,8 @@
            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>
@@ -17089,8 +17089,8 @@
    <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>;
@@ -18029,11 +18029,10 @@
   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
@@ -23103,12 +23102,13 @@
 
   <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
@@ -23134,9 +23134,9 @@
 
   <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>
 
 
 

|