Skip to content

Commit

Permalink
[c] (0) require attributes on <base>; mention that <base> can't be be…
Browse files Browse the repository at this point in the history
…fore <html>...; remove the vestiges of per-attribute annotations in the element <dl>s; do some cleanup; require href='' on the <a> that contains an ismap='' image

git-svn-id: http://svn.whatwg.org/webapps@1115 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 31, 2007
1 parent 4b55728 commit db7c99b
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 58 deletions.
49 changes: 23 additions & 26 deletions index
Expand Up @@ -7030,12 +7030,20 @@ class="main"> or <div class="content">. Why do we also need a body?
<p>There must be no more than one <code><a href="#base">base</a></code>
element per document.

<p>A <code><a href="#base">base</a></code> element must have either an
<code title=attr-base-href><a href="#href">href</a></code> attribute, a
<code title=attr-base-target><a href="#target">target</a></code>
attribute, or both.

<p>The <dfn id=href title=attr-base-href><code>href</code></dfn> content
attribute, if specified, must contain a URI (or IRI).

<p>A <code><a href="#base">base</a></code> element, if it has an <code
title=attr-base-href><a href="#href">href</a></code> attribute, must come
before any other elements in the tree that have attributes with URIs.
before any other elements in the tree that have attributes with URIs
(except the <code><a href="#html">html</a></code> element and its <code
title=attr-html-manifest><a href="#manifest">manifest</a></code>
attribute).

<p>User agents must use the value of the <code
title=att-base-href>href</code> attribute of the first <code><a
Expand Down Expand Up @@ -7093,9 +7101,9 @@ class="main"> or <div class="content">. Why do we also need a body?

<dt>Element-specific attributes:

<dd><code title=attr-link-href><a href="#href1">href</a></code> (required)
<dd><code title=attr-link-href><a href="#href1">href</a></code>

<dd><code title=attr-link-rel><a href="#rel">rel</a></code> (required)
<dd><code title=attr-link-rel><a href="#rel">rel</a></code>

<dd><code title=attr-link-media><a href="#media0">media</a></code>

Expand Down Expand Up @@ -9955,9 +9963,7 @@ Address: &lt;input name="address"&gt;&lt;/p&gt;</pre>
href="#hreflang3">hreflang</a></code>, and <code
title=attr-hyperlink-type><a href="#type17">type</a></code> attributes
must be omitted if the <code title=attr-hyperlink-href><a
href="#href6">href</a></code> attribute is not present.</p>
<!-- XXX really? that makes it harder to use as a
placeholder. -->
href="#href6">href</a></code> attribute is not present.

<div class=example>
<p>If a site uses a consistent navigation toolbar on every page, then the
Expand Down Expand Up @@ -11779,7 +11785,7 @@ brighter. A &lt;b>rat&lt;/b> scurries past the corner wall.&lt;/p></pre>
<dt>Element-specific attributes:

<dd>None, but the <code title=attr-dir><a href="#dir">dir</a></code>
global attribute is required on this element.
global attribute has special requirements on this element.

<dt>DOM interface:

Expand Down Expand Up @@ -12110,13 +12116,11 @@ brighter. A &lt;b>rat&lt;/b> scurries past the corner wall.&lt;/p></pre>

<dd><code title=attr-img-alt><a href="#alt">alt</a></code>

<dd><code title=attr-img-src><a href="#src">src</a></code> (required)
<dd><code title=attr-img-src><a href="#src">src</a></code>

<dd><code title=attr-hyperlink-usemap><a href="#usemap1">usemap</a></code>

<dd><code title=attr-img-ismap><a href="#ismap">ismap</a></code> (but only
if one of the ancestor elements is an <code><a href="#a">a</a></code>
element)
<dd><code title=attr-img-ismap><a href="#ismap">ismap</a></code>

<dd><code title=attr-dim-width><a href="#width3">width</a></code>

Expand Down Expand Up @@ -12599,7 +12603,8 @@ The island of Shalott.&lt;/p></pre>
<p>The <code title=attr-img-ismap><a href="#ismap">ismap</a></code>
attribute is a <a href="#boolean0">boolean attribute</a>. The attribute
must not be specified on an element that does not have an ancestor
<code><a href="#a">a</a></code> element.
<code><a href="#a">a</a></code> element with an <code
title=attr-hyperlink-href><a href="#href6">href</a></code> attribute.

<p>The <code><a href="#img">img</a></code> element supports <a
href="#dimension0">dimension attributes</a>.
Expand Down Expand Up @@ -12759,7 +12764,7 @@ The island of Shalott.&lt;/p></pre>

<dt>Element-specific attributes:

<dd><code title=attr-embed-src><a href="#src3">src</a></code> (required)
<dd><code title=attr-embed-src><a href="#src3">src</a></code>

<dd><code title=attr-embed-type><a href="#type4">type</a></code>

Expand Down Expand Up @@ -12902,13 +12907,9 @@ The island of Shalott.&lt;/p></pre>

<dt>Element-specific attributes:

<dd><code title=attr-object-data><a href="#data">data</a></code> (required
if <code title=attr-object-type><a href="#type6">type</a></code> is not
given)
<dd><code title=attr-object-data><a href="#data">data</a></code>

<dd><code title=attr-object-type><a href="#type6">type</a></code>
(required if <code title=attr-object-data><a href="#data">data</a></code>
is not given)

<dd><code title=attr-hyperlink-usemap><a href="#usemap1">usemap</a></code>

Expand Down Expand Up @@ -13177,10 +13178,8 @@ The island of Shalott.&lt;/p></pre>
<dt>Element-specific attributes:

<dd><code title=attr-param-name><a href="#name1">name</a></code>
(required)

<dd><code title=attr-param-value><a href="#value5">value</a></code>
(required)

<dt>DOM interface:

Expand Down Expand Up @@ -15664,7 +15663,7 @@ The island of Shalott.&lt;/p></pre>

<dt>Element-specific attributes:

<dd><code title=attr-source-src><a href="#src7">src</a></code> (required)
<dd><code title=attr-source-src><a href="#src7">src</a></code>

<dd><code title=attr-source-type><a href="#type8">type</a></code>

Expand Down Expand Up @@ -17384,8 +17383,8 @@ notes on what would need to be defined for dashed lines:

<dt>Element-specific attributes:

<dd>None, but the <code title=attr-id><a href="#id">id</a></code>
attribute is required.
<dd>None, but the <code title=attr-id><a href="#id">id</a></code> global
attribute has special requirements on this element.

<dt>DOM interface:

Expand Down Expand Up @@ -18330,9 +18329,7 @@ notes on what would need to be defined for dashed lines:

<dt>Element-specific attributes:

<dd><code title=attr-colgroup-span><a href="#span0">span</a></code>, but
only if the element contains no <code><a href="#col">col</a></code>
elements
<dd><code title=attr-colgroup-span><a href="#span0">span</a></code>

<dt>DOM interface:

Expand Down
71 changes: 39 additions & 32 deletions source
Expand Up @@ -5541,12 +5541,18 @@ class="main"> or <div class="content">. Why do we also need a body?
<p>There must be no more than one <code>base</code> element per
document.</p>

<p>A <code>base</code> element must have either an <code
title="attr-base-href">href</code> attribute, a <code
title="attr-base-target">target</code> attribute, or both.</p>

<p>The <dfn title="attr-base-href"><code>href</code></dfn> content
attribute, if specified, must contain a URI (or IRI).</p>

<p>A <code>base</code> element, if it has an <code
title="attr-base-href">href</code> attribute, must come before any
other elements in the tree that have attributes with URIs.</p>
other elements in the tree that have attributes with URIs (except
the <code>html</code> element and its <code
title="attr-html-manifest">manifest</code> attribute).</p>

<p>User agents must use the value of the <code
title="att-base-href">href</code> attribute of the first
Expand Down Expand Up @@ -5599,8 +5605,8 @@ class="main"> or <div class="content">. Why do we also need a body?
<dt>Content model:</dt>
<dd>Empty.</dd>
<dt>Element-specific attributes:</dt>
<dd><code title="attr-link-href">href</code> (required)</dd>
<dd><code title="attr-link-rel">rel</code> (required)</dd>
<dd><code title="attr-link-href">href</code></dd>
<dd><code title="attr-link-rel">rel</code></dd>
<dd><code title="attr-link-media">media</code></dd>
<dd><code title="attr-link-hreflang">hreflang</code></dd>
<dd><code title="attr-link-type">type</code></dd>
Expand Down Expand Up @@ -8097,8 +8103,7 @@ Address: &lt;input name="address"&gt;&lt;/p&gt;</pre>
title="attr-hyperlink-hreflang">hreflang</code>, and <code
title="attr-hyperlink-type">type</code> attributes must be omitted
if the <code title="attr-hyperlink-href">href</code> attribute is
not present.</p> <!-- XXX really? that makes it harder to use as a
placeholder. -->
not present.</p>

<div class="example">
<p>If a site uses a consistent navigation toolbar on every page,
Expand Down Expand Up @@ -9729,7 +9734,7 @@ brighter. A &lt;b>rat&lt;/b> scurries past the corner wall.&lt;/p></pre>
<dt>Content model:</dt>
<dd><span>Strictly inline-level content</span>.</dd>
<dt>Element-specific attributes:</dt>
<dd>None, but the <code title="attr-dir">dir</code> global attribute is required on this element.</dd>
<dd>None, but the <code title="attr-dir">dir</code> global attribute has special requirements on this element.</dd>
<dt>DOM interface:</dt>
<dd>No difference from <code>HTMLElement</code>.</dd>
</dl>
Expand All @@ -9738,22 +9743,24 @@ brighter. A &lt;b>rat&lt;/b> scurries past the corner wall.&lt;/p></pre>
Unicode bidi algorithm by explicitly specifying a direction
override. <a href="#refsBIDI">[BIDI]</a></p>

<p>Authors must specify the <code title="attr-dir">dir</code> attribute on this
element, with the value <code>ltr</code> to specify a left-to-right
override and with the value <code>rtl</code> to specify a
right-to-left override.</p>
<p>Authors must specify the <code title="attr-dir">dir</code>
attribute on this element, with the value <code>ltr</code> to
specify a left-to-right override and with the value <code>rtl</code>
to specify a right-to-left override.</p>

<p>If the element has the <code title="attr-dir">dir</code> attribute set to the
exact value <code>ltr</code>, then for the purposes of the bidi
algorithm, the user agent must act as if there was a U+202D
LEFT-TO-RIGHT OVERRIDE character at the start of the element, and a
U+202C POP DIRECTIONAL FORMATTING at the end of the element.</p>
<p>If the element has the <code title="attr-dir">dir</code>
attribute set to the exact value <code>ltr</code>, then for the
purposes of the bidi algorithm, the user agent must act as if there
was a U+202D LEFT-TO-RIGHT OVERRIDE character at the start of the
element, and a U+202C POP DIRECTIONAL FORMATTING at the end of the
element.</p>

<p>If the element has the <code title="attr-dir">dir</code> attribute set to the
exact value <code>rtl</code>, then for the purposes of the bidi
algorithm, the user agent must act as if there was a U+202E
RIGHT-TO-LEFT OVERRIDE character at the start of the element, and a
U+202C POP DIRECTIONAL FORMATTING at the end of the element.</p>
<p>If the element has the <code title="attr-dir">dir</code>
attribute set to the exact value <code>rtl</code>, then for the
purposes of the bidi algorithm, the user agent must act as if there
was a U+202E RIGHT-TO-LEFT OVERRIDE character at the start of the
element, and a U+202C POP DIRECTIONAL FORMATTING at the end of the
element.</p>

<p>The requirements on handling the <code>bdo</code> element for the
bidi algorithm may be implemented indirectly through the style
Expand Down Expand Up @@ -10001,9 +10008,9 @@ brighter. A &lt;b>rat&lt;/b> scurries past the corner wall.&lt;/p></pre>
<dd>Empty.</dd>
<dt>Element-specific attributes:</dt>
<dd><code title="attr-img-alt">alt</code></dd>
<dd><code title="attr-img-src">src</code> (required)</dd>
<dd><code title="attr-img-src">src</code></dd>
<dd><code title="attr-hyperlink-usemap">usemap</code></dd>
<dd><code title="attr-img-ismap">ismap</code> (but only if one of the ancestor elements is an <code>a</code> element)</dd>
<dd><code title="attr-img-ismap">ismap</code></dd>
<dd><code title="attr-dim-width">width</code></dd>
<dd><code title="attr-dim-height">height</code></dd>
<dt>DOM interface:</dt>
Expand Down Expand Up @@ -10536,8 +10543,8 @@ The island of Shalott.&lt;/p></pre>

<p>The <code title="attr-img-ismap">ismap</code> attribute is a
<span>boolean attribute</span>. The attribute must not be specified
on an element that does not have an ancestor <code>a</code>
element.</p>
on an element that does not have an ancestor <code>a</code> element
with an <code title="attr-hyperlink-href">href</code> attribute.</p>

<p>The <code>img</code> element supports <span>dimension
attributes</span>.</p>
Expand Down Expand Up @@ -10671,7 +10678,7 @@ The island of Shalott.&lt;/p></pre>
<dt>Content model:</dt>
<dd>Empty.</dd>
<dt>Element-specific attributes:</dt>
<dd><code title="attr-embed-src">src</code> (required)</dd>
<dd><code title="attr-embed-src">src</code></dd>
<dd><code title="attr-embed-type">type</code></dd>
<dd><code title="attr-dim-width">width</code></dd>
<dd><code title="attr-dim-height">height</code></dd>
Expand Down Expand Up @@ -10801,8 +10808,8 @@ The island of Shalott.&lt;/p></pre>
<dd>Otherwise: Zero or more <code>param</code> elements, followed
by <span>inline-level content</span>.</dd>
<dt>Element-specific attributes:</dt>
<dd><code title="attr-object-data">data</code> (required if <code title="attr-object-type">type</code> is not given)</dd>
<dd><code title="attr-object-type">type</code> (required if <code title="attr-object-data">data</code> is not given)</dd>
<dd><code title="attr-object-data">data</code></dd>
<dd><code title="attr-object-type">type</code></dd>
<dd><code title="attr-hyperlink-usemap">usemap</code></dd>
<dd><code title="attr-dim-width">width</code></dd>
<dd><code title="attr-dim-height">height</code></dd>
Expand Down Expand Up @@ -11080,8 +11087,8 @@ The island of Shalott.&lt;/p></pre>
<dt>Content model:</dt>
<dd>Empty.</dd>
<dt>Element-specific attributes:</dt>
<dd><code title="attr-param-name">name</code> (required)</dd>
<dd><code title="attr-param-value">value</code> (required)</dd>
<dd><code title="attr-param-name">name</code></dd>
<dd><code title="attr-param-value">value</code></dd>
<dt>DOM interface:</dt>
<dd>
<pre class="idl">interface <dfn>HTMLParamElement</dfn> : <span>HTMLElement</span> {
Expand Down Expand Up @@ -13274,7 +13281,7 @@ The island of Shalott.&lt;/p></pre>
<dt>Content model:</dt>
<dd>Empty.</dd>
<dt>Element-specific attributes:</dt>
<dd><code title="attr-source-src">src</code> (required)</dd>
<dd><code title="attr-source-src">src</code></dd>
<dd><code title="attr-source-type">type</code></dd>
<dd><code title="attr-source-media">media</code></dd>
<dt>DOM interface:</dt>
Expand Down Expand Up @@ -14995,7 +15002,7 @@ notes on what would need to be defined for dashed lines:
<dt>Content model:</dt>
<dd>Zero or more <span>block-level elements</span>.</dd>
<dt>Element-specific attributes:</dt>
<dd>None, but the <code title="attr-id">id</code> attribute is required.</dd>
<dd>None, but the <code title="attr-id">id</code> global attribute has special requirements on this element.</dd>
<dt>DOM interface:</dt>
<dd>
<pre class="idl">interface <dfn>HTMLMapElement</dfn> : <span>HTMLElement</span> {
Expand Down Expand Up @@ -15844,7 +15851,7 @@ notes on what would need to be defined for dashed lines:
<dt>Content model:</dt>
<dd>Zero or more <code>col</code> elements.</dd>
<dt>Element-specific attributes:</dt>
<dd><code title="attr-colgroup-span">span</code>, but only if the element contains no <code>col</code> elements</dd>
<dd><code title="attr-colgroup-span">span</code></dd>
<dt>DOM interface:</dt>
<dd>
<pre class="idl">interface <dfn>HTMLTableColElement</dfn> : <span>HTMLElement</span> {
Expand Down

0 comments on commit db7c99b

Please sign in to comment.