Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[e] (0) consistency fix
git-svn-id: http://svn.whatwg.org/webapps@2687 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 21, 2009
1 parent afdba55 commit 0cc5fce
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 59 deletions.
56 changes: 27 additions & 29 deletions index
Expand Up @@ -10521,10 +10521,10 @@ not-slash = %x0000-002E / %x0030-%10FFFF
elements</a>.</p>

<p class=example>Thus, for example, a bubbling <code title=event-message><a href=#event-message>message</a></code> event fired on a child of
<a href=#the-body-element-1>the <code>body</code> element</a> of a
<code>Document</code> would trigger the <code title=handler-onmessage><a href=#handler-onmessage>onmessage</a></code> <a href=#event-handler-content-attributes>event handler
content attributes</a> of that element and of the root
<code><a href=#the-html-element>html</a></code> element, but would not trigger the <code title=handler-window-onmessage><a href=#handler-window-onmessage>onmessage</a></code> <a href=#event-handler-content-attributes title="event
<a href=#the-body-element-1>the body element</a> of a <code>Document</code> would
trigger the <code title=handler-onmessage><a href=#handler-onmessage>onmessage</a></code>
<a href=#event-handler-content-attributes>event handler content attributes</a> of that element and of
the root <code><a href=#the-html-element>html</a></code> element, but would not trigger the <code title=handler-window-onmessage><a href=#handler-window-onmessage>onmessage</a></code> <a href=#event-handler-content-attributes title="event
handler content attributes">event handler content attribute</a>
on the <code><a href=#the-body-element>body</a></code> element.</p>

Expand Down Expand Up @@ -10897,8 +10897,8 @@ isn't his only passion. He also enjoys other pleasures.&lt;/p&gt;
<dd>Uses <code><a href=#htmlelement>HTMLElement</a></code>.</dd>
</dl><p>The <code><a href=#the-address-element>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-body-element-1>the <code>body</code> element</a>,
then it instead applies to the document as a whole.</p>
to. If it applies to <a href=#the-body-element-1>the body element</a>, then it instead
applies to the document as a whole.</p>

<div class=example>
<p>For example, a page at the W3C Web site related to HTML might
Expand Down Expand Up @@ -11297,9 +11297,9 @@ isn't his only passion. He also enjoys other pleasures.&lt;/p&gt;
<li><p>Associate all nodes with the heading of the <a href=#concept-section title=concept-section>section</a> with which they are
associated, if any.</li>

<li><p>If <var title="">current outlinee</var> is <a href=#the-body-element-1>the
<code>body</code> element</a>, then the outline created for that
element is the <a href=#outline>outline</a> of the entire document.</li>
<li><p>If <var title="">current outlinee</var> is <a href=#the-body-element-1>the body
element</a>, then the outline created for that element is the
<a href=#outline>outline</a> of the entire document.</li>

</ol><p>The tree of sections created by the algorithm above, or a proper
subset thereof, must be used when generating document outlines, for
Expand Down Expand Up @@ -11354,29 +11354,28 @@ isn't his only passion. He also enjoys other pleasures.&lt;/p&gt;
<p>Given the <a href=#outline>outline</a> of a document, but ignoring any
sections created for <code><a href=#the-nav-element>nav</a></code> and <code><a href=#the-aside-element>aside</a></code>
elements, and any of their descendants, if the only root of the tree
is <a href=#the-body-element-1>the <code>body</code> element</a>'s <a href=#concept-section title=concept-section>section</a>, and it has only a single
is <a href=#the-body-element-1>the body element</a>'s <a href=#concept-section title=concept-section>section</a>, and it has only a single
subsection which is created by an <code><a href=#the-article-element>article</a></code> element, then
the heading of <a href=#the-body-element-1>the <code>body</code> element</a> should be
assumed to be a site-wide heading, and the heading of the
<code><a href=#the-article-element>article</a></code> element should be assumed to be the page's
heading.</p>
the heading of <a href=#the-body-element-1>the body element</a> should be assumed to be
a site-wide heading, and the heading of the <code><a href=#the-article-element>article</a></code>
element should be assumed to be the page's heading.</p>

<p>If a page starts with a heading that is common to the whole site,
the document must be authored such that, in the document's
<a href=#outline>outline</a>, ignoring any sections created for
<code><a href=#the-nav-element>nav</a></code> and <code><a href=#the-aside-element>aside</a></code> elements and any of their
descendants, the tree has only one root <a href=#concept-section title=concept-section>section</a>, <a href=#the-body-element-1>the <code>body</code>
descendants, the tree has only one root <a href=#concept-section title=concept-section>section</a>, <a href=#the-body-element-1>the body
element</a>'s section, its heading is the site-wide heading,
<a href=#the-body-element-1>the <code>body</code> element</a> has just one subsection,
that subsection is created by an <code><a href=#the-article-element>article</a></code> element, and
that <code><a href=#the-article-element>article</a></code>'s heading is the page heading.</p>
<a href=#the-body-element-1>the body element</a> has just one subsection, that
subsection is created by an <code><a href=#the-article-element>article</a></code> element, and that
<code><a href=#the-article-element>article</a></code>'s heading is the page heading.</p>

<p>If a page does not contain a site-wide heading, then the page
must be authored such that, in the document's <a href=#outline>outline</a>,
ignoring any sections created for <code><a href=#the-nav-element>nav</a></code> and
<code><a href=#the-aside-element>aside</a></code> elements and any of their descendants, either
<a href=#the-body-element-1>the <code>body</code> element</a> has no subsections, or it
has more than one subsection, or it has a single subsection but that
<a href=#the-body-element-1>the body 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=#the-article-element>article</a></code> element, or
there is more than one <a href=#concept-section title=concept-section>section</a>
at the root of the outline.</p>
Expand Down Expand Up @@ -41778,8 +41777,7 @@ at the first element with the given ID must be treated as if it was cloned and r
<p>When an element is <i>focused</i>, key events received by the
document must be targeted at that element. There may be no element
focused; when no element is focused, key events received by the
document must be targetted at <a href=#the-body-element-1>the <code>body</code>
element</a>.</p>
document must be targetted at <a href=#the-body-element-1>the body element</a>.</p>

<p>User agents may track focus for each <a href=#browsing-context>browsing
context</a> or <code>Document</code> individually, or may support
Expand Down Expand Up @@ -41959,8 +41957,8 @@ at the first element with the given ID must be treated as if it was cloned and r
<p>The <dfn id=dom-document-activeelement title=dom-document-activeElement><code>activeElement</code></dfn>
attribute on <code>DocumentHTML</code> objects must return the
element in the document that is focused. If no element in the
<code>Document</code> is focused, this must return <a href=#the-body-element-1>the
<code>body</code> element</a>.</p>
<code>Document</code> is focused, this must return <a href=#the-body-element-1>the body
element</a>.</p>

<p>The <dfn id=dom-document-hasfocus title=dom-document-hasFocus><code>hasFocus()</code></dfn> method
on <code>DocumentHTML</code> objects must return true if the
Expand Down Expand Up @@ -55594,27 +55592,27 @@ xh|section xh|section xh|section xh|section xh|section xh|h1 { /* same styles as
<p>The <dfn id=dom-document-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-body-element-1>the <code>body</code> element</a>.</p>
attribute on <a href=#the-body-element-1>the body element</a>.</p>

<p>The <dfn id=dom-document-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-body-element-1>the <code>body</code> element</a>.</p>
attribute on <a href=#the-body-element-1>the body element</a>.</p>

<p>The <dfn id=dom-document-linkcolor title=dom-document-linkColor><code>linkColor</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-body-element-1>the <code>body</code> element</a>.</p>
attribute on <a href=#the-body-element-1>the body element</a>.</p>

<p>The <dfn id=dom-document-vlinkcolor title=dom-document-vLinkColor><code>vLinkColor</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-body-element-1>the <code>body</code> element</a>.</p>
attribute on <a href=#the-body-element-1>the body element</a>.</p>

<p>The <dfn id=dom-document-alinkcolor title=dom-document-aLinkColor><code>aLinkColor</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-body-element-1>the <code>body</code> element</a>.</p>
attribute on <a href=#the-body-element-1>the body element</a>.</p>

<pre class=idl>[XXX] interface <a href=#htmlbodyelement>HTMLBodyElement</a> {
attribute DOMString <a href=#dom-body-text title=dom-body-text>text</a>;
Expand Down
57 changes: 27 additions & 30 deletions source
Expand Up @@ -11182,11 +11182,10 @@ not-slash = %x0000-002E / %x0030-%10FFFF

<p class="example">Thus, for example, a bubbling <code
title="event-message">message</code> event fired on a child of
<span>the <code>body</code> element</span> of a
<code>Document</code> would trigger the <code
title="handler-onmessage">onmessage</code> <span>event handler
content attributes</span> of that element and of the root
<code>html</code> element, but would not trigger the <code
<span>the body element</span> of a <code>Document</code> would
trigger the <code title="handler-onmessage">onmessage</code>
<span>event handler content attributes</span> of that element and of
the root <code>html</code> element, but would not trigger the <code
title="handler-window-onmessage">onmessage</code> <span title="event
handler content attributes">event handler content attribute</span>
on the <code>body</code> element.</p>
Expand Down Expand Up @@ -11585,8 +11584,8 @@ isn't his only passion. He also enjoys other pleasures.&lt;/p>

<p>The <code>address</code> element represents the contact
information for the section it <a href="#applyToSection">applies</a>
to. If it applies to <span>the <code>body</code> element</span>,
then it instead applies to the document as a whole.</p>
to. If it applies to <span>the body element</span>, then it instead
applies to the document as a whole.</p>

<div class="example">
<p>For example, a page at the W3C Web site related to HTML might
Expand Down Expand Up @@ -12033,9 +12032,9 @@ isn't his only passion. He also enjoys other pleasures.&lt;/p>
title="concept-section">section</span> with which they are
associated, if any.</p></li>

<li><p>If <var title="">current outlinee</var> is <span>the
<code>body</code> element</span>, then the outline created for that
element is the <span>outline</span> of the entire document.</p></li>
<li><p>If <var title="">current outlinee</var> is <span>the body
element</span>, then the outline created for that element is the
<span>outline</span> of the entire document.</p></li>

</ol>

Expand Down Expand Up @@ -12096,31 +12095,30 @@ isn't his only passion. He also enjoys other pleasures.&lt;/p>
<p>Given the <span>outline</span> of a document, but ignoring any
sections created for <code>nav</code> and <code>aside</code>
elements, and any of their descendants, if the only root of the tree
is <span>the <code>body</code> element</span>'s <span
is <span>the body element</span>'s <span
title="concept-section">section</span>, and it has only a single
subsection which is created by an <code>article</code> element, then
the heading of <span>the <code>body</code> element</span> should be
assumed to be a site-wide heading, and the heading of the
<code>article</code> element should be assumed to be the page's
heading.</p>
the heading of <span>the body element</span> should be assumed to be
a site-wide heading, and the heading of the <code>article</code>
element should be assumed to be the page's heading.</p>

<p>If a page starts with a heading that is common to the whole site,
the document must be authored such that, in the document's
<span>outline</span>, ignoring any sections created for
<code>nav</code> and <code>aside</code> elements and any of their
descendants, the tree has only one root <span
title="concept-section">section</span>, <span>the <code>body</code>
title="concept-section">section</span>, <span>the body
element</span>'s section, its heading is the site-wide heading,
<span>the <code>body</code> element</span> has just one subsection,
that subsection is created by an <code>article</code> element, and
that <code>article</code>'s heading is the page heading.</p>
<span>the body element</span> has just one subsection, that
subsection is created by an <code>article</code> element, and that
<code>article</code>'s heading is the page heading.</p>

<p>If a page does not contain a site-wide heading, then the page
must be authored such that, in the document's <span>outline</span>,
ignoring any sections created for <code>nav</code> and
<code>aside</code> elements and any of their descendants, either
<span>the <code>body</code> element</span> has no subsections, or it
has more than one subsection, or it has a single subsection but that
<span>the body element</span> 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>article</code> element, or
there is more than one <span title="concept-section">section</span>
at the root of the outline.</p>
Expand Down Expand Up @@ -47602,8 +47600,7 @@ at the first element with the given ID must be treated as if it was cloned and r
<p>When an element is <i>focused</i>, key events received by the
document must be targeted at that element. There may be no element
focused; when no element is focused, key events received by the
document must be targetted at <span>the <code>body</code>
element</span>.</p>
document must be targetted at <span>the body element</span>.</p>

<p>User agents may track focus for each <span>browsing
context</span> or <code>Document</code> individually, or may support
Expand Down Expand Up @@ -47814,8 +47811,8 @@ at the first element with the given ID must be treated as if it was cloned and r
title="dom-document-activeElement"><code>activeElement</code></dfn>
attribute on <code>DocumentHTML</code> objects must return the
element in the document that is focused. If no element in the
<code>Document</code> is focused, this must return <span>the
<code>body</code> element</span>.</p>
<code>Document</code> is focused, this must return <span>the body
element</span>.</p>

<p>The <dfn
title="dom-document-hasFocus"><code>hasFocus()</code></dfn> method
Expand Down Expand Up @@ -60854,27 +60851,27 @@ xh|section xh|section xh|section xh|section xh|section xh|h1 { /* same styles as
<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>
attribute on <span>the body 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>
attribute on <span>the body element</span>.</p>

<p>The <dfn title="dom-document-linkColor"><code>linkColor</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>
attribute on <span>the body element</span>.</p>

<p>The <dfn title="dom-document-vLinkColor"><code>vLinkColor</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>
attribute on <span>the body element</span>.</p>

<p>The <dfn title="dom-document-aLinkColor"><code>aLinkColor</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>
attribute on <span>the body element</span>.</p>

<pre class="idl">[XXX] interface <span>HTMLBodyElement</span> {
attribute DOMString <span title="dom-body-text">text</span>;
Expand Down

0 comments on commit 0cc5fce

Please sign in to comment.