Skip to content

Commit

Permalink
[e] (0) fix xrefs for 'enumerated attributes'
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@548 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 2, 2007
1 parent 7be0d2c commit 4ebd6b9
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 41 deletions.
59 changes: 29 additions & 30 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -5111,14 +5111,14 @@ data:text/xml,<script xmlns="http://www.w3.org/1999/xhtml"><![CDATA[ alert('test
attributes</h4>

<p>Some attributes are defined as taking one of a finite set of keywords.
Such attributes are called <dfn id=enumerated>enumerated attributes</dfn>.
The keywords are each defined to map to a particular <em>state</em>
(several keywords might map to the same state, in which case some of the
keywords are synonyms of each other; additionally, some of the keywords
can be said to be non-conforming, and are only in the specification for
historical reasons). In addition, two default states can be given. The
first is the <em>invalid value default</em>, the second is the <em>missing
value default</em>.
Such attributes are called <dfn id=enumerated title="enumerated
attribute">enumerated attributes</dfn>. The keywords are each defined to
map to a particular <em>state</em> (several keywords might map to the same
state, in which case some of the keywords are synonyms of each other;
additionally, some of the keywords can be said to be non-conforming, and
are only in the specification for historical reasons). In addition, two
default states can be given. The first is the <em>invalid value
default</em>, the second is the <em>missing value default</em>.

<p>If an enumerated attribute is specified, the attribute's value must be
one of the given keywords that are not said to be non-conforming, with no
Expand Down Expand Up @@ -5763,8 +5763,8 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
title=attr-dir><code>dir</code></dfn> attribute</h4>

<p>The <code title=attr-dir><a href="#dir0">dir</a></code> attribute
specifies the element's text directionality. The attribute is an
<span>enumerated attribute</span> with the keyword <code
specifies the element's text directionality. The attribute is an <a
href="#enumerated">enumerated attribute</a> with the keyword <code
title="">ltr</code> mapping to the state <em>ltr</em>, and the keyword rtl
mapping to the state <em>rtl</em>. The attribute has no defaults.

Expand Down Expand Up @@ -13286,7 +13286,7 @@ interface <dfn id=imagedata>ImageData</dfn> {

<dd><code title=attr-area-coords><a href="#coords0">coords</a></code>

<dd><code title=attr-area-shape><a href="#shape0">shape</a></code>
<dd><code title=attr-area-shape>shape</code>

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

Expand Down Expand Up @@ -13327,8 +13327,7 @@ interface <dfn id=imagedata>ImageData</dfn> {
<dfn id=alt1 title=attr-area-alt><code>alt</code></dfn> attribute, which
must be present, specifies the text, and the <code
title=attr-area-coords><a href="#coords0">coords</a></code> and <code
title=attr-area-shape><a href="#shape0">shape</a></code> attributes
specify the area.
title=attr-area-shape>shape</code> attributes specify the area.

<p>If the <code><a href="#area0">area</a></code> element has an <code
title=attr-hyperlink-href><a href="#href5">href</a></code> attribute, then
Expand Down Expand Up @@ -14303,8 +14302,8 @@ interface <dfn id=imagedata>ImageData</dfn> {
<p>The <code><a href="#th0">th</a></code> element may have a <dfn id=scope0
title=attr-th-scope><code>scope</code></dfn> content attribute specified.
The <code title=attr-th-scope><a href="#scope0">scope</a></code> attribute
is an <span>enumerated attribute</span> with five states, four of which
have explicit keywords:
is an <a href="#enumerated">enumerated attribute</a> with five states,
four of which have explicit keywords:

<dl>
<dt>The <dfn id=row title=attr-th-scope-row><code>row</code></dfn>
Expand Down Expand Up @@ -20822,14 +20821,14 @@ mpt says:
<!-- TESTS
http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E%0A%3Cimg%20src%3D%22http%3A//hixie.ch/resources/images/smallcats%22%20usemap%3D%23a%20onclick%3Dw%28%27img%27%29%3E%0A%3Cmap%20name%3Da%3E%0A%20%3Carea%20onclick%3Dw%28%271%27%29%20coords%3D%270%25%200%25%20100%25%20100%25%27%20href%3Djavascript%3A%3E%0A%3C/map%3E
http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E%0A%3Cbody%20onfocus%3D%22w%28document.activeElement.tagName%29%22%3E%0A%3Cimg%20src%3D%22http%3A//hixie.ch/resources/images/smallcats%22%20usemap%3D%23a%20onclick%3Dw%28%27img%27%29%20onfocus%3D%22w%28document.activeElement.tagName%29%22%3E%0A%3Cimg%20src%3D%22http%3A//hixie.ch/resources/images/sample%22%20usemap%3D%23a%20onclick%3Dw%28%27img%27%29%20onfocus%3D%22w%28document.activeElement.tagName%29%22%3E%0A%3Cmap%20name%3Da%20onfocus%3D%22w%28document.activeElement.tagName%29%22%3E%0A%20%3Carea%20onclick%3Dw%28%271%27%29%20coords%3D%270%200%2050%2050%27%20href%3Djavascript%3A%20onfocus%3D%22w%28document.activeElement.tagName%29%22%3E%0A%3C/map%3E%0A%3Cscript%3E%0A%20var%20x%20%3D%20document.getElementsByTagName%28%27img%27%29%5B0%5D%3B%0A%20x.parentNode.appendChild%28x%29%3B%0A%20document.getElementsByTagName%28%27area%27%29%5B0%5D.focus%28%29%3B%0A%3C/script%3E
http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3Ex%3Cmap%3E%3Carea%20shape%3Dpolyg%20coords%3D%221%2C2%203%22%3E%3C/map%3E%0A%3Cscript%3Ex%20%3D%20document.getElementsByTagName%28%27area%27%29%5B0%5D%3B%20w%28x.shape%20+%20%27%20%27%20+%20x.coords%29%3C/script%3E
-->

<p class=big-issue>...<dfn id=image>image map</dfn>, <dfn id=valid5>valid
area</dfn>, <dfn id=usemap1
title=attr-hyperlink-usemap><code>usemap</code></dfn>, <dfn id=coords0
title=attr-area-coords><code>coords</code></dfn>, <dfn id=shape0
title=attr-area-shape><code>shape</code></dfn>, <dfn id=server>server side
image map</dfn>.</p>
title=attr-area-coords><code>coords</code></dfn>, <dfn id=server>server
side image map</dfn>.</p>
<!-- usemap is special-cased when it starts with a "#".
does any browser support it when it doesn't? -->
<!-- http://lxr.mozilla.org/seamonkey/source/layout/generic/nsImageMap.cpp: parsing of coords, ordering of coord numbers when out of order -->
Expand Down Expand Up @@ -23452,13 +23451,13 @@ MAYBE WANT
href="#html-elements">HTML elements</a>.

<p>The <code title=attr-contenteditable><a
href="#contenteditable0">contenteditable</a></code> attribute is an
<span>enumerated attribute</span> whose keywords are the empty string,
<code title="">true</code>, and <code title="">false</code>. The empty
string and the <code title="">true</code> keyword map to the <em>true</em>
state. The <code title="">false</code> keyword maps to the <em>false</em>
state, which is also the <em>invalid value default</em>. There is no
<em>missing value default</em>.
href="#contenteditable0">contenteditable</a></code> attribute is an <a
href="#enumerated">enumerated attribute</a> whose keywords are the empty
string, <code title="">true</code>, and <code title="">false</code>. The
empty string and the <code title="">true</code> keyword map to the
<em>true</em> state. The <code title="">false</code> keyword maps to the
<em>false</em> state, which is also the <em>invalid value default</em>.
There is no <em>missing value default</em>.

<p>If an HTML element has a <code title=attr-contenteditable><a
href="#contenteditable0">contenteditable</a></code> attribute set to the
Expand Down Expand Up @@ -24627,11 +24626,11 @@ http://developer.apple.com/documentation/AppleApplications/Conceptual/SafariJSPr
<p>All elements may have the <code title=attr-draggable><a
href="#draggable0">draggable</a></code> content attribute set. The <code
title=attr-draggable><a href="#draggable0">draggable</a></code> attribute
is an <span>enumerated attribute</span>. It has three states. The first
state is <em>true</em> and it has the keyword <code title="">true</code>.
The second state is <em>false</em> and it has the keyword <code
title="">false</code>. The third state is <em>auto</em>; it has no
keywords but it is the <em>missing value default</em>.
is an <a href="#enumerated">enumerated attribute</a>. It has three states.
The first state is <em>true</em> and it has the keyword <code
title="">true</code>. The second state is <em>false</em> and it has the
keyword <code title="">false</code>. The third state is <em>auto</em>; it
has no keywords but it is the <em>missing value default</em>.

<p>The <dfn id=draggable1 title=dom-draggable><code>draggable</code></dfn>
DOM attribute, whose value depends on the content attribute's in the way
Expand Down
23 changes: 12 additions & 11 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -3953,15 +3953,15 @@ data:text/xml,<script xmlns="http://www.w3.org/1999/xhtml"><![CDATA[ alert('test
<h4>Keywords and enumerated attributes</h4>

<p>Some attributes are defined as taking one of a finite set of
keywords. Such attributes are called <dfn>enumerated
attributes</dfn>. The keywords are each defined to map to a
particular <em>state</em> (several keywords might map to the same
state, in which case some of the keywords are synonyms of each
other; additionally, some of the keywords can be said to be
non-conforming, and are only in the specification for historical
reasons). In addition, two default states can be given. The first is
the <em>invalid value default</em>, the second is the <em>missing
value default</em>.</p>
keywords. Such attributes are called <dfn title="enumerated
attribute">enumerated attributes</dfn>. The keywords are each
defined to map to a particular <em>state</em> (several keywords
might map to the same state, in which case some of the keywords are
synonyms of each other; additionally, some of the keywords can be
said to be non-conforming, and are only in the specification for
historical reasons). In addition, two default states can be
given. The first is the <em>invalid value default</em>, the second
is the <em>missing value default</em>.</p>

<p>If an enumerated attribute is specified, the attribute's value
must be one of the given keywords that are not said to be
Expand Down Expand Up @@ -18693,12 +18693,12 @@ mpt says:
<!-- TESTS
http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E%0A%3Cimg%20src%3D%22http%3A//hixie.ch/resources/images/smallcats%22%20usemap%3D%23a%20onclick%3Dw%28%27img%27%29%3E%0A%3Cmap%20name%3Da%3E%0A%20%3Carea%20onclick%3Dw%28%271%27%29%20coords%3D%270%25%200%25%20100%25%20100%25%27%20href%3Djavascript%3A%3E%0A%3C/map%3E
http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E%0A%3Cbody%20onfocus%3D%22w%28document.activeElement.tagName%29%22%3E%0A%3Cimg%20src%3D%22http%3A//hixie.ch/resources/images/smallcats%22%20usemap%3D%23a%20onclick%3Dw%28%27img%27%29%20onfocus%3D%22w%28document.activeElement.tagName%29%22%3E%0A%3Cimg%20src%3D%22http%3A//hixie.ch/resources/images/sample%22%20usemap%3D%23a%20onclick%3Dw%28%27img%27%29%20onfocus%3D%22w%28document.activeElement.tagName%29%22%3E%0A%3Cmap%20name%3Da%20onfocus%3D%22w%28document.activeElement.tagName%29%22%3E%0A%20%3Carea%20onclick%3Dw%28%271%27%29%20coords%3D%270%200%2050%2050%27%20href%3Djavascript%3A%20onfocus%3D%22w%28document.activeElement.tagName%29%22%3E%0A%3C/map%3E%0A%3Cscript%3E%0A%20var%20x%20%3D%20document.getElementsByTagName%28%27img%27%29%5B0%5D%3B%0A%20x.parentNode.appendChild%28x%29%3B%0A%20document.getElementsByTagName%28%27area%27%29%5B0%5D.focus%28%29%3B%0A%3C/script%3E
http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3Ex%3Cmap%3E%3Carea%20shape%3Dpolyg%20coords%3D%221%2C2%203%22%3E%3C/map%3E%0A%3Cscript%3Ex%20%3D%20document.getElementsByTagName%28%27area%27%29%5B0%5D%3B%20w%28x.shape%20+%20%27%20%27%20+%20x.coords%29%3C/script%3E
-->

<p class="big-issue">...<dfn>image map</dfn>, <dfn>valid area</dfn>,
<dfn title="attr-hyperlink-usemap"><code>usemap</code></dfn>, <dfn
title="attr-area-coords"><code>coords</code></dfn>, <dfn
title="attr-area-shape"><code>shape</code></dfn>, <dfn>server side
title="attr-area-coords"><code>coords</code></dfn>, <dfn>server side
image map</dfn>.</p>

<!-- usemap is special-cased when it starts with a "#".
Expand All @@ -18717,6 +18717,7 @@ mpt says:
the area multiple times however</p>



<h3 id="styling"><dfn title="styling processing model">Styling</dfn></h3>

<p>The <code>link</code> and <code>style</code> elements can provide
Expand Down

0 comments on commit 4ebd6b9

Please sign in to comment.