Skip to content

Commit

Permalink
[] (0) Turns out that embed, object, and iframe reflect strings for .…
Browse files Browse the repository at this point in the history
…height and .width, not numbers. Go figure.

git-svn-id: http://svn.whatwg.org/webapps@2333 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 15, 2008
1 parent a8baf35 commit be6d959
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 38 deletions.
38 changes: 19 additions & 19 deletions index
Expand Up @@ -15084,8 +15084,8 @@ href="?audio"&gt;audio&lt;/a&gt; test instead.)&lt;/p&gt;</pre>
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>;
Expand Down Expand Up @@ -15488,8 +15488,8 @@ href="?audio"&gt;audio&lt;/a&gt; test instead.)&lt;/p&gt;</pre>
<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
Expand Down Expand Up @@ -15652,8 +15652,8 @@ href="?audio"&gt;audio&lt;/a&gt; test instead.)&lt;/p&gt;</pre>
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>
Expand Down Expand Up @@ -16064,8 +16064,8 @@ href="?audio"&gt;audio&lt;/a&gt; test instead.)&lt;/p&gt;</pre>
<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>;
Expand Down Expand Up @@ -16874,8 +16874,7 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href=#htmlmediael
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>
Expand Down Expand Up @@ -21001,12 +21000,13 @@ function AddCloud(data, x, y) { ... }</pre>
<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
Expand All @@ -21030,9 +21030,9 @@ function AddCloud(data, x, y) { ... }</pre>
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>



Expand Down
38 changes: 19 additions & 19 deletions source
Expand Up @@ -15983,8 +15983,8 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>
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>;
Expand Down Expand Up @@ -16442,8 +16442,8 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>
<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
Expand Down Expand Up @@ -16630,8 +16630,8 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>
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>
Expand Down Expand Up @@ -17089,8 +17089,8 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>
<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>;
Expand Down Expand Up @@ -18029,11 +18029,10 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {
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
Expand Down Expand Up @@ -23103,12 +23102,13 @@ function AddCloud(data, x, y) { ... }</pre>

<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
Expand All @@ -23134,9 +23134,9 @@ function AddCloud(data, x, y) { ... }</pre>

<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>



Expand Down

0 comments on commit be6d959

Please sign in to comment.