[html5] r2333 - [] (0) Turns out that embed, object, and iframe reflect strings for .height and [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Oct 15 13:15:34 PDT 2008


Author: ianh
Date: 2008-10-15 13:15:34 -0700 (Wed, 15 Oct 2008)
New Revision: 2333

Modified:
   index
   source
Log:
[] (0) Turns out that embed, object, and iframe reflect strings for .height and .width, not numbers. Go figure.

Modified: index
===================================================================
--- index	2008-10-15 00:57:26 UTC (rev 2332)
+++ index	2008-10-15 20:15:34 UTC (rev 2333)
@@ -15084,8 +15084,8 @@
            attribute DOMString <a href=#dom-iframe-name title=dom-iframe-name>name</a>;
            attribute DOMString <a href=#dom-iframe-sandbox title=dom-iframe-sandbox>sandbox</a>;
            attribute boolean <a href=#dom-iframe-seamless title=dom-iframe-seamless>seamless</a>;
-           attribute unsigned long <a href=#dom-dim-width title=dom-dim-width>width</a>;
-           attribute unsigned long <a href=#dom-dim-height title=dom-dim-height>height</a>;
+           attribute DOMString <a href=#dom-dim-width title=dom-dim-width>width</a>;
+           attribute DOMString <a href=#dom-dim-height title=dom-dim-height>height</a>;
 <!-- 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>;
@@ -15488,8 +15488,8 @@
 <pre class=idl>interface <dfn id=htmlembedelement>HTMLEmbedElement</dfn> : <a href=#htmlelement>HTMLElement</a> {
            attribute DOMString <a href=#dom-embed-src title=dom-embed-src>src</a>;
            attribute DOMString <a href=#dom-embed-type title=dom-embed-type>type</a>;
-           attribute unsigned long <a href=#dom-dim-width title=dom-dim-width>width</a>;
-           attribute unsigned long <a href=#dom-dim-height title=dom-dim-height>height</a>;
+           attribute DOMString <a href=#dom-dim-width title=dom-dim-width>width</a>;
+           attribute DOMString <a href=#dom-dim-height title=dom-dim-height>height</a>;
 };</pre>
     <p>Depending on the type of content instantiated by the
     <code><a href=#the-embed-element>embed</a></code> element, the node may also support other
@@ -15652,8 +15652,8 @@
            attribute DOMString <a href=#dom-object-type title=dom-object-type>type</a>;
            attribute DOMString <a href=#dom-object-name title=dom-object-name>name</a>;
            attribute DOMString <a href=#dom-object-usemap title=dom-object-useMap>useMap</a>;
-           attribute unsigned long <a href=#dom-dim-width title=dom-dim-width>width</a>;
-           attribute unsigned long <a href=#dom-dim-height title=dom-dim-height>height</a>;<!--
+           attribute DOMString <a href=#dom-dim-width title=dom-dim-width>width</a>;
+           attribute DOMString <a href=#dom-dim-height title=dom-dim-height>height</a>;<!--
   readonly attribute Document <span title="dom-object-contentDocument">contentDocument</span>;
   readonly attribute <span>Window</span> <span title="dom-object-contentWindow">contentWindow</span>;-->
 };</pre>
@@ -16064,8 +16064,8 @@
    <dt>DOM interface:</dt>
    <dd>
     <pre class=idl>interface <dfn id=htmlvideoelement>HTMLVideoElement</dfn> : <a href=#htmlmediaelement>HTMLMediaElement</a> {
-           attribute unsigned long <a href=#dom-dim-width title=dom-dim-width>width</a>;
-           attribute unsigned long <a href=#dom-dim-height title=dom-dim-height>height</a>;
+           attribute DOMString <a href=#dom-dim-width title=dom-dim-width>width</a>;
+           attribute DOMString <a href=#dom-dim-height title=dom-dim-height>height</a>;
   readonly attribute unsigned long <a href=#dom-video-videowidth title=dom-video-videoWidth>videoWidth</a>;
   readonly attribute unsigned long <a href=#dom-video-videoheight title=dom-video-videoHeight>videoHeight</a>;
            attribute DOMString <a href=#dom-video-poster title=dom-video-poster>poster</a>;
@@ -16874,10 +16874,9 @@
   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 title=dom-media-NETWORK_LOADED><a href=#dom-media-network_loaded>NETWORK_LOADED</a></code> state.</p>
+  reach the <code title=dom-media-NETWORK_LOADED><a href=#dom-media-network_loaded>NETWORK_LOADED</a></code> state.</p>
 
 
-
   <h5 id=loading-the-media-resource><span class=secno>4.8.10.4 </span>Loading the media resource</h5>
 
   <p>All <a href=#media-element title="media element">media elements</a> have a
@@ -21001,12 +21000,13 @@
   <h4 id=dimension-attributes><span class=secno>4.8.17 </span><dfn>Dimension attributes</dfn></h4>
 
   <p>The <dfn id=attr-dim-width title=attr-dim-width><code>width</code></dfn> and <dfn id=attr-dim-height title=attr-dim-height><code>height</code></dfn> attributes on
-  <code><a href=#the-img-element>img</a></code>, <code><a href=#the-embed-element>embed</a></code>, <code><a href=#the-object-element>object</a></code>, and
-  <code><a href=#video>video</a></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 <a href=#valid-positive-non-zero-integers>valid positive non-zero integers</a>.</p>
+  <code><a href=#the-img-element>img</a></code>, <code><a href=#the-iframe-element>iframe</a></code>, <code><a href=#the-embed-element>embed</a></code>,
+  <code><a href=#the-object-element>object</a></code>, and <code><a href=#video>video</a></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 <a href=#valid-positive-non-zero-integers>valid positive non-zero
+  integers</a>.</p>
 
   <p>The specified dimensions given may differ from the dimensions
   specified in the resource itself, since the resource may have a
@@ -21030,9 +21030,9 @@
   those requirements, as if it was not specified.</p>
 
   <p>The <dfn id=dom-dim-width title=dom-dim-width><code>width</code></dfn> and <dfn id=dom-dim-height title=dom-dim-height><code>height</code></dfn> DOM attributes on
-  the <code><a href=#the-embed-element>embed</a></code>, <code><a href=#the-object-element>object</a></code>, and <code><a href=#video>video</a></code>
-  elements must <a href=#reflect>reflect</a> the respective content attributes
-  of the same name.</p>
+  the <code><a href=#the-iframe-element>iframe</a></code>, <code><a href=#the-embed-element>embed</a></code>, <code><a href=#the-object-element>object</a></code>,
+  and <code><a href=#video>video</a></code> elements must <a href=#reflect>reflect</a> the
+  respective content attributes of the same name.</p>
 
 
 

Modified: source
===================================================================
--- source	2008-10-15 00:57:26 UTC (rev 2332)
+++ source	2008-10-15 20:15:34 UTC (rev 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>
 
 
 




More information about the Commit-Watchers mailing list