Skip to content

Commit

Permalink
[e] (0) Stop using <em> for things other than emphasis. Remove title=…
Browse files Browse the repository at this point in the history
…'' from <em> elements.

git-svn-id: http://svn.whatwg.org/webapps@1895 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 22, 2008
1 parent 93f87d3 commit c8a0cbc
Show file tree
Hide file tree
Showing 2 changed files with 147 additions and 153 deletions.
154 changes: 75 additions & 79 deletions index
Expand Up @@ -2615,9 +2615,9 @@
stating that it does not apply to the other format, as in "for HTML, ...
(this does not apply to XHTML)".

<p>This specification uses the term <em title="">document</em> to refer to
any use of HTML, ranging from short static documents to long essays or
reports with rich multimedia, as well as to fully-fledged interactive
<p>This specification uses the term <em>document</em> to refer to any use
of HTML, ranging from short static documents to long essays or reports
with rich multimedia, as well as to fully-fledged interactive
applications.

<p>The term <dfn id=root-element>root element</dfn>, when not explicitly
Expand Down Expand Up @@ -5833,9 +5833,9 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
<p>Let <var title="">official type</var> be the type given by the <a
href="#content-type5" title=Content-Type>Content-Type metadata</a> for
the resource (in lowercase<!-- XXX ASCII case folding -->, ignoring any
parameters). If there is no such type, jump to the <em
parameters). If there is no such type, jump to the <i
title="content-type sniffing: unknown type"><a
href="#content-type7">unknown type</a></em> step below.
href="#content-type7">unknown type</a></i> step below.

<li>
<p>If the user agent is configured to strictly obey Content-Type headers
Expand Down Expand Up @@ -5882,17 +5882,17 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
<td><code title="">text/plain;&nbsp;charset=UTF-8</code>
</table>

<p>...then jump to the <em title="content-type sniffing: text or
binary"><a href="#content-type6">text or binary</a></em> section below.</p>
<p>...then jump to the <i title="content-type sniffing: text or
binary"><a href="#content-type6">text or binary</a></i> section below.</p>
<!-- while IE sniffs all text/plain, this will continue to grow as
people add new defaults. Hopefully IE will stop the madness in due
course and stop sniffing anything but the above... -->


<li>
<p>If <var title="">official type</var> is "unknown/unknown" or
"application/unknown", jump to the <em title="content-type sniffing:
unknown type"><a href="#content-type7">unknown type</a></em> step below.</p>
"application/unknown", jump to the <i title="content-type sniffing:
unknown type"><a href="#content-type7">unknown type</a></i> step below.</p>
<!-- In a study looking at many billions of pages whose first five
characters were "<HTML", "unknown/unknown" was used to label
documents about once for every 5000 pages labeled "text/html", and
Expand All @@ -5911,13 +5911,13 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
<li>
<p>If <var title="">official type</var> is an image type supported by the
user agent (e.g. "image/png", "image/gif", "image/jpeg", etc), then jump
to the <em title="content-type sniffing: image"><a
href="#content-type8">images</a></em> section below.
to the <i title="content-type sniffing: image"><a
href="#content-type8">images</a></i> section below.

<li>
<p>If <var title="">official type</var> is "text/html", then jump to the
<em title="content-type sniffing: feed or html"><a
href="#content-type9">feed or HTML</a></em> section below.
<i title="content-type sniffing: feed or html"><a
href="#content-type9">feed or HTML</a></i> section below.

<li>
<p>The sniffed type of the resource is <var title="">official type</var>.
Expand Down Expand Up @@ -16014,8 +16014,8 @@ the time Marco had stuck his tongue out...&lt;/p></pre>
document</a> has the <a href="#same-origin">same origin</a> as the
<code><a href="#iframe">iframe</a></code> element's document, or the <a
href="#browsing1">browsing context</a>'s <a href="#active">active
document</a>'s <em title=""><span title="the document's
address">address</span><!-- XXX xref --></em> has the <a
document</a>'s <em><a href="#address"><span title="the document's
address">address</span><!-- XXX xref --></a></em> has the <a
href="#same-origin">same origin</a> as the <code><a
href="#iframe">iframe</a></code> element's document, the following
requirements apply:
Expand Down Expand Up @@ -21159,8 +21159,9 @@ notes on what would need to be defined for dashed lines:
href="#globalcompositeoperation"
title=dom-context-2d-globalCompositeOperation>global composition
operators</a>. (Transformations affect the path when the path is created,
not when it is painted, though the stroke <em title="">style</em> is still
affected by the transformation during painting.)
not when it is painted, though the stroke <em><a
href="#style1">style</a></em> is still affected by the transformation
during painting.)

<p>Zero-length line segments must be pruned before stroking a path. Empty
subpaths must be ignored.
Expand Down Expand Up @@ -24564,8 +24565,8 @@ function AddCloud(data, x, y) { ... }</pre>
and, based on its state, apply the appropriate substep:</p>

<dl class=switch>
<dt>If it is in the <em title=attr-th-scope-row><a
href="#row">row</a></em> state
<dt>If it is in the <i title=attr-th-scope-row><a
href="#row">row</a></i> state

<dd>
<p>Add all the data cells that cover slots with coordinates (<var
Expand All @@ -24581,8 +24582,8 @@ function AddCloud(data, x, y) { ... }</pre>
title="">height</sub></var></span>, to the <var title="">data
cells</var> list.</p>

<dt>If it is in the <em title=attr-th-scope-col><a
href="#col0">column</a></em> state
<dt>If it is in the <i title=attr-th-scope-col><a
href="#col0">column</a></i> state

<dd>
<p>Add all the data cells that cover slots with coordinates (<var
Expand All @@ -24598,8 +24599,8 @@ function AddCloud(data, x, y) { ... }</pre>
title="">height</sub></var></span>, to the <var title="">data
cells</var> list.</p>

<dt>If it is in the <em title=attr-th-scope-rowgroup><a
href="#rowgroup">row group</a></em> state
<dt>If it is in the <i title=attr-th-scope-rowgroup><a
href="#rowgroup">row group</a></i> state

<dd>
<p>If the header cell is not in a <a href="#row-group"
Expand All @@ -24619,8 +24620,8 @@ function AddCloud(data, x, y) { ... }</pre>
title="">y</sub></var>+<var title="">height</var></span>, to the
<var title="">data cells</var> list.</p>

<dt>If it is in the <em title=attr-th-scope-colgroup><a
href="#colgroup0">column group</a></em> state
<dt>If it is in the <i title=attr-th-scope-colgroup><a
href="#colgroup0">column group</a></i> state

<dd>
<p>If the header cell is not anchored in a <a href="#column0"
Expand All @@ -24641,7 +24642,7 @@ function AddCloud(data, x, y) { ... }</pre>
title="">height</sub></var></span>, to the <var title="">data
cells</var> list.</p>

<dt>Otherwise, it is in the <em title="">auto</em> state
<dt>Otherwise, it is in the <i title="">auto</i> state

<dd>
<p>Run these steps:</p>
Expand Down Expand Up @@ -40564,9 +40565,9 @@ http://developer.apple.com/documentation/AppleApplications/Conceptual/SafariJSPr

<dd><strong>Action:</strong> The user agent must act as if the user had
requested that the selection <a href="#contenteditable-wrapSemantic">be
wrapped in the semantics</a> of the <em title=""><code><a
href="#b">b</a></code></em> element (or, again, unwrapped, or have that
semantic inserted or removed, as defined by the UA).
wrapped in the semantics</a> of the <em><a
href="#b"><code>b</code></a></em> element (or, again, unwrapped, or have
that semantic inserted or removed, as defined by the UA).

<dd><strong>Enabled When:</strong> The document is <a href="#ready">ready
for editing host commands</a>.
Expand All @@ -40586,10 +40587,10 @@ http://developer.apple.com/documentation/AppleApplications/Conceptual/SafariJSPr

<dd><strong>Action:</strong> The user agent must act as if the user had
requested that the selection <a href="#contenteditable-wrapSemantic">be
wrapped in the semantics</a> of the <em title=""><code><a
href="#a">a</a></code></em> element (or, again, unwrapped, or have that
semantic inserted or removed, as defined by the UA). If the user agent
creates an <code><a href="#a">a</a></code> element or modifies an
wrapped in the semantics</a> of the <em><a
href="#a"><code>a</code></a></em> element (or, again, unwrapped, or have
that semantic inserted or removed, as defined by the UA). If the user
agent creates an <code><a href="#a">a</a></code> element or modifies an
existing <code><a href="#a">a</a></code> element, then if the <var
title="">showUI</var> argument is present and has the value false, then
the value of the <var title="">value</var> argument must be used as the
Expand Down Expand Up @@ -40692,15 +40693,15 @@ http://developer.apple.com/documentation/AppleApplications/Conceptual/SafariJSPr

<dd><strong>Action:</strong> The user agent must act as if the user had
requested that the selection <a href="#contenteditable-wrapSemantic">be
wrapped in the semantics</a> of the <em title=""><code><a
href="#img">img</a></code></em> element (or, again, unwrapped, or have
that semantic inserted or removed, as defined by the UA). If the user
agent creates an <code><a href="#img">img</a></code> element or modifies
an existing <code><a href="#img">img</a></code> element, then if the <var
title="">showUI</var> argument is present and has the value false, then
the value of the <var title="">value</var> argument must be used as the
<a href="#url">URL</a> of the image. Otherwise, the user should be
prompted for the URL of the image.
wrapped in the semantics</a> of the <em><a
href="#img"><code>img</code></a></em> element (or, again, unwrapped, or
have that semantic inserted or removed, as defined by the UA). If the
user agent creates an <code><a href="#img">img</a></code> element or
modifies an existing <code><a href="#img">img</a></code> element, then if
the <var title="">showUI</var> argument is present and has the value
false, then the value of the <var title="">value</var> argument must be
used as the <a href="#url">URL</a> of the image. Otherwise, the user
should be prompted for the URL of the image.

<dd><strong>Enabled When:</strong> The document is <a href="#ready">ready
for editing host commands</a>.
Expand Down Expand Up @@ -40841,9 +40842,9 @@ http://developer.apple.com/documentation/AppleApplications/Conceptual/SafariJSPr

<dd><strong>Action:</strong> The user agent must act as if the user had
requested that the selection <a href="#contenteditable-wrapSemantic">be
wrapped in the semantics</a> of the <em title=""><code><a
href="#i">i</a></code></em> element (or, again, unwrapped, or have that
semantic inserted or removed, as defined by the UA).
wrapped in the semantics</a> of the <em><a
href="#i"><code>i</code></a></em> element (or, again, unwrapped, or have
that semantic inserted or removed, as defined by the UA).

<dd><strong>Enabled When:</strong> The document is <a href="#ready">ready
for editing host commands</a>.
Expand Down Expand Up @@ -40900,9 +40901,9 @@ http://developer.apple.com/documentation/AppleApplications/Conceptual/SafariJSPr

<dd><strong>Action:</strong> The user agent must act as if the user had
requested that the selection <a href="#contenteditable-wrapSemantic">be
wrapped in the semantics</a> of the <em title=""><code><a
href="#sub">sub</a></code></em> element (or, again, unwrapped, or have
that semantic inserted or removed, as defined by the UA).
wrapped in the semantics</a> of the <em><a
href="#sub"><code>sub</code></a></em> element (or, again, unwrapped, or
have that semantic inserted or removed, as defined by the UA).

<dd><strong>Enabled When:</strong> The document is <a href="#ready">ready
for editing host commands</a>.
Expand Down Expand Up @@ -41672,9 +41673,9 @@ data:&nbsp;test</pre>
title=dom-WebSocket-readyState><a
href="#readystate1">readyState</a></code> is not <code
title=dom-WebSocket-OPEN><a href="#open3">OPEN</a></code>), it must raise
an <code>INVALID_STATE_ERR</code> exception. If the connection <em
title="">is</em> established, then the user agent must <a
href="#send-">send <var title="">data</var> using the Web Socket</a>.
an <code>INVALID_STATE_ERR</code> exception. If the connection <em>is</em>
established, then the user agent must <a href="#send-">send <var
title="">data</var> using the Web Socket</a>.

<p>The <dfn id=disconnect
title=dom-WebSocket-disconnect><code>disconnect()</code></dfn> method must
Expand Down Expand Up @@ -41940,8 +41941,8 @@ Proxy-authorization: Basic ZWRuYW1vZGU6bm9jYXBlcyE=</pre>
initially empty.

<li id=ws-ua-header-loop>
<p><em title="">Header</em>: Let <var title="">name</var> and <var
title="">value</var> be empty byte arrays.
<p><em><a href="#header">Header</a></em>: Let <var title="">name</var>
and <var title="">value</var> be empty byte arrays.

<li>
<p>Read a byte from the server.</p>
Expand Down Expand Up @@ -42057,8 +42058,8 @@ Proxy-authorization: Basic ZWRuYW1vZGU6bm9jYXBlcyE=</pre>
<p>Return to the <a href="#ws-ua-header-loop">header</a> step above.</p>

<li id=ws-ua-headers-processing>
<p><em title="">Headers processing</em>: If there is not exactly one
entry in the <var title="">headers</var> list whose name is "<code
<p><em>Headers processing</em>: If there is not exactly one entry in the
<var title="">headers</var> list whose name is "<code
title="">websocket-origin</code>", or if there is not exactly one entry
in the <var title="">headers</var> list whose name is "<code
title="">websocket-location</code>", or if there are any entries in the
Expand Down Expand Up @@ -42183,7 +42184,7 @@ Proxy-authorization: Basic ZWRuYW1vZGU6bm9jYXBlcyE=</pre>
</ol>

<dt>If the high-order bit of the <var title="">frame type</var> byte is
<em title="">not</em> set (i.e. if <var title="">frame type</var> <i
<em>not</em> set (i.e. if <var title="">frame type</var> <i
title="">and</i>ed with 0x80 returns 0x00)

<dd>
Expand Down Expand Up @@ -45231,14 +45232,13 @@ function receiver(e) {

<p>The exact behavior of certain states depends on a <dfn
id=content3>content model flag</dfn> that is set after certain tokens are
emitted. The flag has several states: <em title="">PCDATA</em>, <em
title="">RCDATA</em>, <em title="">CDATA</em>, and <em
title="">PLAINTEXT</em>. Initially it must be in the PCDATA state. In the
RCDATA and CDATA states, a further <dfn id=escape>escape flag</dfn> is
used to control the behavior of the tokeniser. It is either true or false,
and initially must be set to the false state. The <span>insertion
mode</span> and the <a href="#stack">stack of open elements</a> also
affects tokenization.
emitted. The flag has several states: <i title="">PCDATA</i>, <i
title="">RCDATA</i>, <i title="">CDATA</i>, and <i title="">PLAINTEXT</i>.
Initially it must be in the PCDATA state. In the RCDATA and CDATA states,
a further <dfn id=escape>escape flag</dfn> is used to control the behavior
of the tokeniser. It is either true or false, and initially must be set to
the false state. The <span>insertion mode</span> and the <a
href="#stack">stack of open elements</a> also affects tokenization.

<p>The output of the tokenization step is a series of zero or more of the
following tokens: DOCTYPE, start tag, end tag, comment, character,
Expand Down Expand Up @@ -47411,14 +47411,14 @@ function receiver(e) {
href="#table">table</a></code> element and it has such a parent element.
If there is no <code><a href="#table">table</a></code> element in the <a
href="#stack">stack of open elements</a> (<a href="#fragment">fragment
case</a>), then the <em><a href="#foster1">foster parent element</a></em>
is the first element in the <a href="#stack">stack of open elements</a>
(the <code><a href="#html">html</a></code> element). Otherwise, if there
is a <code><a href="#table">table</a></code> element in the <a
case</a>), then the <i><a href="#foster1">foster parent element</a></i> is
the first element in the <a href="#stack">stack of open elements</a> (the
<code><a href="#html">html</a></code> element). Otherwise, if there is a
<code><a href="#table">table</a></code> element in the <a
href="#stack">stack of open elements</a>, but the last <code><a
href="#table">table</a></code> element in the <a href="#stack">stack of
open elements</a> has no parent, or its parent node is not an element,
then the <em><a href="#foster1">foster parent element</a></em> is the
then the <i><a href="#foster1">foster parent element</a></i> is the
element before the last <code><a href="#table">table</a></code> element in
the <a href="#stack">stack of open elements</a>.

Expand Down Expand Up @@ -51052,33 +51052,29 @@ http://lxr.mozilla.org/seamonkey/search?string=nested
<dt>If it is a <code><a href="#title1">title</a></code> or
<code>textarea</code> element

<dd>Set the <a href="#content3">content model flag</a> to
<em>RCDATA</em>.
<dd>Set the <a href="#content3">content model flag</a> to <i>RCDATA</i>.

<dt>If it is a <code><a href="#style1">style</a></code>, <code><a
href="#script1">script</a></code>, <code>xmp</code>, <code><a
href="#iframe">iframe</a></code>, <code>noembed</code>, or
<code>noframes</code> element

<dd>Set the <a href="#content3">content model flag</a> to
<em>CDATA</em>.
<dd>Set the <a href="#content3">content model flag</a> to <i>CDATA</i>.

<dt>If it is a <code><a href="#noscript">noscript</a></code> element

<dd>If the <a href="#scripting2">scripting flag</a> is enabled, set the
<a href="#content3">content model flag</a> to <em>CDATA</em>.
Otherwise, set the <a href="#content3">content model flag</a> to
<em>PCDATA</em>.
<a href="#content3">content model flag</a> to <i>CDATA</i>. Otherwise,
set the <a href="#content3">content model flag</a> to <i>PCDATA</i>.

<dt>If it is a <code>plaintext</code> element

<dd>Set the <a href="#content3">content model flag</a> to
<em>PLAINTEXT</em>.
<i>PLAINTEXT</i>.

<dt>Otherwise

<dd>Set the <a href="#content3">content model flag</a> to
<em>PCDATA</em>.
<dd>Set the <a href="#content3">content model flag</a> to <i>PCDATA</i>.
</dl>

<li>
Expand Down

0 comments on commit c8a0cbc

Please sign in to comment.