NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 189 - Add height/width to <iframe>.
Add height/width to <iframe>.
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: HTML5 schema
HEAD
All All
: P2 normal
Assigned To: Henri Sivonen
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-05-22 13:47 CEST by Henri Sivonen
Modified: 2008-05-26 12:21 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henri Sivonen 2008-05-22 13:47:58 CEST
Index: source
===================================================================
--- source	(revision 1658)
+++ source	(revision 1659)
@@ -12209,16 +12209,21 @@
    <dd><code title="attr-iframe-name">name</code></dd>
    <dd><code title="attr-iframe-sandbox">sandbox</code></dd>
    <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 boolean <span title="dom-iframe-seamless">seamless</span>;
+           attribute long <span title="dom-dim-width">width</span>;
+           attribute long <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>
+  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
@@ -12586,6 +12591,10 @@
 
 
 
+  <p>The <code>iframe</code> element supports <span>dimension
+  attributes</span> for cases where the embedded content has specific
+  dimensions (e.g. ad units have well-defined dimensions).</p>
+
   <p>An <code>iframe</code> element never has <span>fallback
   content</span>, as it will always create a nested <span>browsing
   context</span>, regardless of whether the specified initial contents