Skip to content
Permalink
Browse files

[] (0) Turns out that embed, object, and iframe reflect strings for .…

…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 be6d959ce9d37ba3eee4a06b24eb27f540d3b7de
Showing with 38 additions and 38 deletions.
  1. +19 −19 index
  2. +19 −19 source
38 index
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>;
<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
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>
<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>;
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>
<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
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>



38 source
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 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
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>
<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>;
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

<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

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



0 comments on commit be6d959

Please sign in to comment.
You can’t perform that action at this time.