[html5] r1452 - /
whatwg at whatwg.org
whatwg at whatwg.org
Thu Apr 17 14:33:06 PDT 2008
Author: ianh
Date: 2008-04-17 14:32:44 -0700 (Thu, 17 Apr 2008)
New Revision: 1452
Modified:
index
source
Log:
[] (0) Define deprecated DOM attributes for <body> presentational attributes
Modified: index
===================================================================
--- index 2008-04-17 21:15:45 UTC (rev 1451)
+++ index 2008-04-17 21:32:44 UTC (rev 1452)
@@ -1761,10 +1761,13 @@
property</a>
</ul>
- <li><a href="#obsolete"><span class=secno>10.3 </span>Obsolete
- elements</a>
+ <li><a href="#obsolete"><span class=secno>10.3 </span>Obsolete elements,
+ attributes, and APIs</a>
<ul class=toc>
- <li><a href="#the-applet"><span class=secno>10.3.1 </span>The
+ <li><a href="#the-body0"><span class=secno>10.3.1 </span>The
+ <code>body</code> element</a>
+
+ <li><a href="#the-applet"><span class=secno>10.3.2 </span>The
<code>applet</code> element</a>
</ul>
</ul>
@@ -3535,7 +3538,7 @@
attribute of the same name on the <code>SVGDocument</code> interface when
the user agent supports both HTML and SVG.
- <p><dfn id=the-body0>The body element</dfn> of a document is the first
+ <p><dfn id=the-body1>The body element</dfn> of a document is the first
child of <a href="#the-html0">the <code>html</code> element</a> that is
either a <code><a href="#body0">body</a></code> element or a
<code>frameset</code> element. If there is no such element, it is null. If
@@ -3544,7 +3547,7 @@
<code>Document</code> object.
<p>The <dfn id=body title=dom-document-body><code>body</code></dfn>
- attribute, on getting, must return <a href="#the-body0">the body
+ attribute, on getting, must return <a href="#the-body1">the body
element</a> of the document (either a <code><a
href="#body0">body</a></code> element, a <code>frameset</code> element, or
null). On setting, the following algorithm must be run:
@@ -3554,17 +3557,17 @@
<code>frameset</code> element, then raise a
<code>HIERARCHY_REQUEST_ERR</code> exception and abort these steps.
- <li>Otherwise, if the new value is the same as <a href="#the-body0">the
+ <li>Otherwise, if the new value is the same as <a href="#the-body1">the
body element</a>, do nothing. Abort these steps.
- <li>Otherwise, if <a href="#the-body0">the body element</a> is not null,
+ <li>Otherwise, if <a href="#the-body1">the body element</a> is not null,
then replace that element with the new value in the DOM, as if the root
element's <code title="">replaceChild()</code> method had been called
- with the new value and <a href="#the-body0" title="the body element">the
+ with the new value and <a href="#the-body1" title="the body element">the
incumbent body element</a> as its two arguments respectively, then abort
these steps.
- <li>Otherwise, the <a href="#the-body0">the body element</a> is null.
+ <li>Otherwise, the <a href="#the-body1">the body element</a> is null.
Append the new value to the root element.
</ol>
<!--XXX
@@ -3993,7 +3996,7 @@
characters just inserted into the input stream. (The
<code>Document</code> node will have been populated with elements and a
<code title=event-load><a href="#load0">load</a></code> event will have
- fired on <a href="#the-body0" title="the body element">its body
+ fired on <a href="#the-body1" title="the body element">its body
element</a>.)</p>
</ol>
@@ -6851,7 +6854,7 @@
<p>The <dfn id=activeelement
title=dom-document-activeElement><code>activeElement</code></dfn>
attribute must return the element in the document that has focus. If no
- element specifically has focus, this must return <a href="#the-body0">the
+ element specifically has focus, this must return <a href="#the-body1">the
<code>body</code> element</a>.
<p>The <dfn id=hasfocus
@@ -8431,7 +8434,7 @@
<p class=note>Some DOM operations (for example, parts of the <a
href="#drag-and">drag and drop</a> model) are defined in terms of "<a
- href="#the-body0">the body element</a>". This refers to a particular
+ href="#the-body1">the body element</a>". This refers to a particular
element in the DOM, as per the definition of the term, and not any
arbitrary <code><a href="#body0">body</a></code> element.
@@ -8906,7 +8909,7 @@
<p>The <code><a href="#address">address</a></code> element represents the
contact information for the section it <a
href="#applyToSection">applies</a> to. If it applies to <a
- href="#the-body0">the <code>body</code> element</a>, then it instead
+ href="#the-body1">the <code>body</code> element</a>, then it instead
applies to the document as a whole.
<div class=example>
@@ -9273,7 +9276,7 @@
are associated, if any.
<li>
- <p>If <var title="">current outlinee</var> is <a href="#the-body0">the
+ <p>If <var title="">current outlinee</var> is <a href="#the-body1">the
<code>body</code> element</a>, then the outline created for that element
is the outline of the entire document.
</ol>
@@ -9331,10 +9334,10 @@
<p>Given the <a href="#outline">outline</a> of a document, but ignoring any
sections created for <code><a href="#nav">nav</a></code> and <code><a
href="#aside">aside</a></code> elements, and any of their descendants, if
- the only root of the tree is <a href="#the-body0">the <code>body</code>
+ the only root of the tree is <a href="#the-body1">the <code>body</code>
element</a>'s section, and it has only a single subsection which is
created by an <code><a href="#article">article</a></code> element, then
- the heading of <a href="#the-body0">the <code>body</code> element</a>
+ the heading of <a href="#the-body1">the <code>body</code> element</a>
should be assumed to be a site-wide heading, and the heading of the
<code><a href="#article">article</a></code> element should be assumed to
be the page's heading.
@@ -9344,8 +9347,8 @@
href="#outline">outline</a>, ignoring any sections created for <code><a
href="#nav">nav</a></code> and <code><a href="#aside">aside</a></code>
elements and any of their descendants, the tree has only one root section,
- <a href="#the-body0">the <code>body</code> element</a>'s section, its
- heading is the site-wide heading, <a href="#the-body0">the
+ <a href="#the-body1">the <code>body</code> element</a>'s section, its
+ heading is the site-wide heading, <a href="#the-body1">the
<code>body</code> element</a> has just one subsection, that subsection is
created by an <code><a href="#article">article</a></code> element, and
that <code><a href="#article">article</a></code>'s heading is the page
@@ -9355,7 +9358,7 @@
authored such that, in the document's <a href="#outline">outline</a>,
ignoring any sections created for <code><a href="#nav">nav</a></code> and
<code><a href="#aside">aside</a></code> elements and any of their
- descendants, either <a href="#the-body0">the <code>body</code> element</a>
+ descendants, either <a href="#the-body1">the <code>body</code> element</a>
has no subsections, or it has more than one subsection, or it has a single
subsection but that subsection is not created by an <code><a
href="#article">article</a></code> element, or there is more than one
@@ -29390,7 +29393,7 @@
<code><a href="#window">Window</a></code> changes from true to false, the
user agent must <a href="#firing2">fire a simple event</a> called <dfn
id=offline0 title=event-offline><code>offline</code></dfn> at <a
- href="#the-body0">the body element</a>.
+ href="#the-body1">the body element</a>.
<p>On the other hand, when the value that would be returned by the <code
title=dom-navigator-onLine><a
@@ -29398,7 +29401,7 @@
<code><a href="#window">Window</a></code> changes from false to true, the
user agent must <a href="#firing2">fire a simple event</a> called <dfn
id=online0 title=event-online><code>online</code></dfn> at <a
- href="#the-body0">the body element</a>.</p>
+ href="#the-body1">the body element</a>.</p>
<!-- XXX ononline onoffline need to be defined -->
<h3 id=history><span class=secno>4.7 </span>Session history and navigation</h3>
@@ -29658,7 +29661,7 @@
from the <a href="#current0">current entry</a>'s only by its fragment
identifier, and the two share the same <code>Document</code> object,
then <a href="#firing2">fire a simple event</a> with the name
- <code>hashchanged</code> at <a href="#the-body0">the <code>body</code>
+ <code>hashchanged</code> at <a href="#the-body1">the <code>body</code>
element</a>, and, if the new URI has a fragment identifier, <a
href="#scroll">scroll to the fragment identifier</a>.
@@ -29804,7 +29807,7 @@
<li>
<p>The user agent must then fire a <dfn id=popstate
title=event-popstate><code>popstate</code></dfn> event in no namespace
- on <a href="#the-body0">the body element</a> using the <code><a
+ on <a href="#the-body1">the body element</a> using the <code><a
href="#popstateevent">PopStateEvent</a></code> interface, with the <code
title=dom-PopStateEvent-state><a href="#state0">state</a></code>
attribute set to the value of <var title="">state</var>. This event
@@ -31660,7 +31663,7 @@
<p>When this happens, the user agent must dispatch an event with the name
<code><a href="#storage0">storage</a></code>, with no namespace, which
does not bubble but is cancelable, and which uses the <code><a
- href="#storageevent">StorageEvent</a></code>, at <a href="#the-body0">the
+ href="#storageevent">StorageEvent</a></code>, at <a href="#the-body1">the
body element</a> of each <a href="#active" title="active
document">active</a> <code><a href="#htmldocument">HTMLDocument</a></code>
object affected. The event must have its <code
@@ -34650,7 +34653,7 @@
<td><dfn id=dragenter title=event-dragenter><code>dragenter</code></dfn>
<td><a href="#immediate">Immediate user selection</a> or <a
- href="#the-body0">the body element</a>
+ href="#the-body1">the body element</a>
<td>✓ Bubbles
@@ -35025,13 +35028,13 @@
<li>
<p>Otherwise, if the <a href="#current1">current target element</a>
- is not <a href="#the-body0">the body element</a>, the user agent
+ is not <a href="#the-body1">the body element</a>, the user agent
must fire a <code title=event-dragenter><a
href="#dragenter">dragenter</a></code> event at <a
- href="#the-body0">the body element</a>, and the <a
+ href="#the-body1">the body element</a>, and the <a
href="#current1">current target element</a> must be set to <a
- href="#the-body0">the body element</a>, regardless of whether that
- event was canceled or not. (If <a href="#the-body0">the body
+ href="#the-body1">the body element</a>, regardless of whether that
+ event was canceled or not. (If <a href="#the-body1">the body
element</a> is null, then the <a href="#current1">current target
element</a> would be set to null too in this case, it wouldn't be
set to the <code>Document</code> object.)</p>
@@ -45493,7 +45496,7 @@
<p>Once everything that <dfn id=delays title="delay the load event">delays
the load event</dfn> has completed, the user agent must <a href="#firing4"
title="fire a load event">fire a <code title=event-load>load</code>
- event</a> at <a href="#the-body0">the <code>body</code> element</a>.</p>
+ event</a> at <a href="#the-body1">the <code>body</code> element</a>.</p>
<!-- XXX make sure things "delay the load event" -->
<p class=big-issue>delaying the load event for things like image loads
@@ -48316,9 +48319,91 @@
title=command-attribute>command</code> attribute, but when the property
computes to an actual image, it should use that image instead.
- <h3 id=obsolete><span class=secno>10.3 </span>Obsolete elements</h3>
+ <h3 id=obsolete><span class=secno>10.3 </span>Obsolete elements,
+ attributes, and APIs</h3>
- <h4 id=the-applet><span class=secno>10.3.1 </span>The <dfn
+ <h4 id=the-body0><span class=secno>10.3.1 </span>The <code><a
+ href="#body0">body</a></code> element</h4>
+
+ <p class=big-issue>Need to define the content attributes in terms of CSS or
+ something.
+
+ <pre class=idl>[XXX=HTMLDocument] interface {
+ attribute DOMString <a href="#fgcolor" title=dom-document-fgColor>fgColor</a>;
+ attribute DOMString <a href="#bgcolor" title=dom-document-bgColor>bgColor</a>;
+ attribute DOMString <span title=dom-document-linkColor>linkColor</span>;
+ attribute DOMString <span title=dom-document-vlinkColor>vlinkColor</span>;
+ attribute DOMString <span title=dom-document-alinkColor>alinkColor</span>;
+};</pre>
+
+ <p>The <dfn id=fgcolor
+ title=dom-document-fgColor><code>fgColor</code></dfn> attribute on the
+ <code>Document</code> object must <a href="#reflect">reflect</a> the <code
+ title=attr-body-text>text</code> attribute on <a href="#the-body1">the
+ <code>body</code> element</a>.
+
+ <p>The <dfn id=bgcolor
+ title=dom-document-bgColor><code>bgColor</code></dfn> attribute on the
+ <code>Document</code> object must <a href="#reflect">reflect</a> the <code
+ title=attr-body-bgcolor>bgcolor</code> attribute on <a
+ href="#the-body1">the <code>body</code> element</a>.
+
+ <p>The <dfn id=link0 title=dom-document-link><code>link</code></dfn>
+ attribute on the <code>Document</code> object must <a
+ href="#reflect">reflect</a> the <code title=attr-body-link>link</code>
+ attribute on <a href="#the-body1">the <code>body</code> element</a>.
+
+ <p>The <dfn id=vlink title=dom-document-vLink><code>vLink</code></dfn>
+ attribute on the <code>Document</code> object must <a
+ href="#reflect">reflect</a> the <code title=attr-body-vlink>vlink</code>
+ attribute on <a href="#the-body1">the <code>body</code> element</a>.
+
+ <p>The <dfn id=alink title=dom-document-aLink><code>aLink</code></dfn>
+ attribute on the <code>Document</code> object must <a
+ href="#reflect">reflect</a> the <code title=attr-body-alink>alink</code>
+ attribute on <a href="#the-body1">the <code>body</code> element</a>.
+
+ <pre class=idl>[XXX=HTMLBodyElement] interface {
+ attribute DOMString <a href="#text2" title=dom-body-text>text</a>;
+ attribute DOMString <a href="#bgcolor0" title=dom-body-bgColor>bgColor</a>;
+ attribute DOMString <a href="#background" title=dom-body-background>background</a>;
+ attribute DOMString <a href="#link1" title=dom-body-link>link</a>;
+ attribute DOMString <a href="#vlink0" title=dom-body-vLink>vLink</a>;
+ attribute DOMString <a href="#alink0" title=dom-body-aLink>aLink</a>;
+};</pre>
+
+ <p>The <dfn id=text2 title=dom-body-text><code>text</code></dfn> DOM
+ attribute of the <code><a href="#body0">body</a></code> element must <a
+ href="#reflect">reflect</a> the element's <code
+ title=attr-body-text>text</code> content attribute.
+
+ <p>The <dfn id=bgcolor0 title=dom-body-bgColor><code>bgColor</code></dfn>
+ DOM attribute of the <code><a href="#body0">body</a></code> element must
+ <a href="#reflect">reflect</a> the element's <code
+ title=attr-body-bgcolor>bgcolor</code> content attribute.
+
+ <p>The <dfn id=background
+ title=dom-body-background><code>background</code></dfn> DOM attribute of
+ the <code><a href="#body0">body</a></code> element must <a
+ href="#reflect">reflect</a> the element's <code
+ title=attr-body-background>background</code> content attribute.
+
+ <p>The <dfn id=link1 title=dom-body-link><code>link</code></dfn> DOM
+ attribute of the <code><a href="#body0">body</a></code> element must <a
+ href="#reflect">reflect</a> the element's <code
+ title=attr-body-link>link</code> content attribute.
+
+ <p>The <dfn id=alink0 title=dom-body-aLink><code>aLink</code></dfn> DOM
+ attribute of the <code><a href="#body0">body</a></code> element must <a
+ href="#reflect">reflect</a> the element's <code
+ title=attr-body-alink>alink</code> content attribute.
+
+ <p>The <dfn id=vlink0 title=dom-body-vLink><code>vLink</code></dfn> DOM
+ attribute of the <code><a href="#body0">body</a></code> element must <a
+ href="#reflect">reflect</a> the element's <code
+ title=attr-body-vlink>vlink</code> content attribute.
+
+ <h4 id=the-applet><span class=secno>10.3.2 </span>The <dfn
id=applet><code>applet</code></dfn> element</h4>
<p>The <code><a href="#applet">applet</a></code> element is a Java-specific
Modified: source
===================================================================
--- source 2008-04-17 21:15:45 UTC (rev 1451)
+++ source 2008-04-17 21:32:44 UTC (rev 1452)
@@ -43430,9 +43430,87 @@
that image instead.</p>
+ <h3>Obsolete elements, attributes, and APIs</h3>
- <h3>Obsolete elements</h3>
+ <h4>The <code>body</code> element</h4>
+ <p class="big-issue">Need to define the content attributes in terms
+ of CSS or something.</p>
+
+ <pre class="idl">[XXX=HTMLDocument] interface {
+ attribute DOMString <span title="dom-document-fgColor">fgColor</span>;
+ attribute DOMString <span title="dom-document-bgColor">bgColor</span>;
+ attribute DOMString <span title="dom-document-linkColor">linkColor</span>;
+ attribute DOMString <span title="dom-document-vlinkColor">vlinkColor</span>;
+ attribute DOMString <span title="dom-document-alinkColor">alinkColor</span>;
+};</pre>
+
+ <p>The <dfn title="dom-document-fgColor"><code>fgColor</code></dfn>
+ attribute on the <code>Document</code> object must
+ <span>reflect</span> the <code title="attr-body-text">text</code>
+ attribute on <span>the <code>body</code> element</span>.</p>
+
+ <p>The <dfn title="dom-document-bgColor"><code>bgColor</code></dfn>
+ attribute on the <code>Document</code> object must
+ <span>reflect</span> the <code title="attr-body-bgcolor">bgcolor</code>
+ attribute on <span>the <code>body</code> element</span>.</p>
+
+ <p>The <dfn title="dom-document-link"><code>link</code></dfn>
+ attribute on the <code>Document</code> object must
+ <span>reflect</span> the <code title="attr-body-link">link</code>
+ attribute on <span>the <code>body</code> element</span>.</p>
+
+ <p>The <dfn title="dom-document-vLink"><code>vLink</code></dfn>
+ attribute on the <code>Document</code> object must
+ <span>reflect</span> the <code title="attr-body-vlink">vlink</code>
+ attribute on <span>the <code>body</code> element</span>.</p>
+
+ <p>The <dfn title="dom-document-aLink"><code>aLink</code></dfn>
+ attribute on the <code>Document</code> object must
+ <span>reflect</span> the <code title="attr-body-alink">alink</code>
+ attribute on <span>the <code>body</code> element</span>.</p>
+
+ <pre class="idl">[XXX=HTMLBodyElement] interface {
+ attribute DOMString <span title="dom-body-text">text</span>;
+ attribute DOMString <span title="dom-body-bgColor">bgColor</span>;
+ attribute DOMString <span title="dom-body-background">background</span>;
+ attribute DOMString <span title="dom-body-link">link</span>;
+ attribute DOMString <span title="dom-body-vLink">vLink</span>;
+ attribute DOMString <span title="dom-body-aLink">aLink</span>;
+};</pre>
+
+ <p>The <dfn title="dom-body-text"><code>text</code></dfn> DOM
+ attribute of the <code>body</code> element must <span>reflect</span>
+ the element's <code title="attr-body-text">text</code> content
+ attribute.</p>
+
+ <p>The <dfn title="dom-body-bgColor"><code>bgColor</code></dfn> DOM
+ attribute of the <code>body</code> element must <span>reflect</span>
+ the element's <code title="attr-body-bgcolor">bgcolor</code> content
+ attribute.</p>
+
+ <p>The <dfn title="dom-body-background"><code>background</code></dfn> DOM
+ attribute of the <code>body</code> element must <span>reflect</span>
+ the element's <code title="attr-body-background">background</code> content
+ attribute.</p>
+
+ <p>The <dfn title="dom-body-link"><code>link</code></dfn> DOM
+ attribute of the <code>body</code> element must <span>reflect</span>
+ the element's <code title="attr-body-link">link</code> content
+ attribute.</p>
+
+ <p>The <dfn title="dom-body-aLink"><code>aLink</code></dfn> DOM
+ attribute of the <code>body</code> element must <span>reflect</span>
+ the element's <code title="attr-body-alink">alink</code> content
+ attribute.</p>
+
+ <p>The <dfn title="dom-body-vLink"><code>vLink</code></dfn> DOM
+ attribute of the <code>body</code> element must <span>reflect</span>
+ the element's <code title="attr-body-vlink">vlink</code> content
+ attribute.</p>
+
+
+
<h4>The <dfn><code>applet</code></dfn> element</h4>
<p>The <code>applet</code> element is a Java-specific variant of the
More information about the Commit-Watchers
mailing list