Skip to content

Commit

Permalink
appease the XML gods
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@395 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Dec 1, 2006
1 parent aa951e5 commit 1e78400
Show file tree
Hide file tree
Showing 2 changed files with 119 additions and 66 deletions.
92 changes: 60 additions & 32 deletions index
Expand Up @@ -22,8 +22,7 @@

<h1 id=web-applications>Web Applications 1.0</h1>

<h2 class="no-num no-toc" id=working>Working Draft &mdash; 30 November
2006</h2>
<h2 class="no-num no-toc" id=working>Working Draft &mdash; 1 December 2006</h2>

<p>You can take part in this work. <a
href="http://www.whatwg.org/mailing-list">Join the working group's
Expand Down Expand Up @@ -24575,7 +24574,10 @@ function receiver(e) {
href="#embed0">embed</a></code>, <code><a
href="#param0">param</a></code>, <code><a href="#area0">area</a></code>,
<code><a href="#col0">col</a></code>, <code>input</code><!-- XXX add: ,
<code>command</code>, <code>event-source</code> -->
<code>command</code>, <code>event-source</code> --></dd>
<!-- XXX
keep this synchronised with the list of "permitted slash" elements
-->

<dt>CDATA elements

Expand Down Expand Up @@ -24661,13 +24663,19 @@ function receiver(e) {

<li>Following the tag name, the start tag may have a number of attributes,
the <a href="#attributes1" title=syntax-attributes>syntax for which</a>
is described below. Attributes must be separated from each other and from
the tag name by one or more <a href="#space" title="space
character">space characters</a>.
is described below. Attributes names and unquoted attribute values must
be separated from each other and from the tag name and the U+002F SOLIDUS
character mentioned below (if present) by one or more <a href="#space"
title="space character">space characters</a>.

<li>After the attributes, there may be one or more <a href="#space"
title="space character">space characters</a>.

<li>Then, if the element is one of the void elements, then there may be a
single U+002F SOLIDUS character. This character has no effect except to
appease the markup gods. As this character is therefore just a symbol of
faith, atheists should omit it.

<li>Finally, start tags must be closed by a U+003E GREATER-THAN SIGN
(<code>&gt;</code>) character.
</ol>
Expand Down Expand Up @@ -25509,7 +25517,8 @@ function receiver(e) {

<dt>U+002F SOLIDUS (/)

<dd><a href="#parse">Parse error</a>. Switch to the <a
<dd><a href="#parse">Parse error</a> unless this is a <a
href="#permitted">permitted slash</a>. Switch to the <a
href="#before">before attribute name state</a>.

<dt>Anything else
Expand Down Expand Up @@ -25552,7 +25561,8 @@ function receiver(e) {

<dt>U+002F SOLIDUS (/)

<dd><a href="#parse">Parse error</a>. Stay in the <a
<dd><a href="#parse">Parse error</a> unless this is a <a
href="#permitted">permitted slash</a>. Stay in the <a
href="#before">before attribute name state</a>.

<dt>U+003C LESS-THAN SIGN (&lt;)
Expand Down Expand Up @@ -25606,7 +25616,8 @@ function receiver(e) {

<dt>U+002F SOLIDUS (/)

<dd><a href="#parse">Parse error</a>. Switch to the <a
<dd><a href="#parse">Parse error</a> unless this is a <a
href="#permitted">permitted slash</a>. Switch to the <a
href="#before">before attribute name state</a>.

<dt>U+003C LESS-THAN SIGN (&lt;)
Expand Down Expand Up @@ -25667,7 +25678,8 @@ function receiver(e) {

<dt>U+002F SOLIDUS (/)

<dd><a href="#parse">Parse error</a>. Switch to the <a
<dd><a href="#parse">Parse error</a> unless this is a <a
href="#permitted">permitted slash</a>. Switch to the <a
href="#before">before attribute name state</a>.

<dt>U+003C LESS-THAN SIGN (&lt;)
Expand Down Expand Up @@ -26155,6 +26167,20 @@ function receiver(e) {
<p>When an end tag token is emitted with attributes, that is a <a
href="#parse">parse error</a>.

<p>A <dfn id=permitted>permitted slash</dfn> is a U+002F SOLIDUS character
that is immediately followed by a U+003E GREATER-THAN SIGN, if, and only
if, the current token being processed is a start tag token whose tag name
is one of the following: <code><a href="#base0">base</a></code>, <code><a
href="#link0">link</a></code>, <code><a href="#meta0">meta</a></code>,
<code><a href="#hr0">hr</a></code>, <code><a href="#br0">br</a></code>,
<code><a href="#img0">img</a></code>, <code><a
href="#embed0">embed</a></code>, <code><a href="#param0">param</a></code>,
<code><a href="#area0">area</a></code>, <code><a
href="#col0">col</a></code>, <code>input</code><!-- XXX add:
, <code>command</code>, <code>event-source</code> --></p>
<!-- XXX
keep this synchronised with the list of "void elements" -->

<h5 id=tokenising><span class=secno>9.2.3.1. </span>Tokenising entities</h5>

<p>This section defines how to <dfn id=consume>consume an entity</dfn>.
Expand Down Expand Up @@ -31134,29 +31160,31 @@ interface <dfn id=timeouthandler>TimeoutHandler</dfn> {

<p>Thanks to Aankhen, Aaron Leventhal, Alexey Feldgendler, Anne van
Kesteren, Anthony Hickson, Asbj&oslash;rn Ulsberg, Ben Godfrey, Ben
Meadowcroft, Bjoern Hoehrmann, Boris Zbarsky, Brad Fults, Brad Neuberg,
Brendan Eich, Channy Yun, Charl van
Meadowcroft, Benjamin Hawkes-Lewis, Bjoern Hoehrmann, Boris Zbarsky, Brad
Fults, Brad Neuberg, Brendan Eich, Brett Wilson, Channy Yun, Charl van
Niekerk<!--status.whatwg.org maintainer-->, Christian Biesinger, Chriswa,
Darin Fisher, Dave Townsend<!-- Mossop on moz irc -->, David Baron, David
Hyatt, Derek Featherstone, Daniel Peng, David Flanagan, Dimitri Glazkov,
dolphinling, Doron Rosenberg, Eira Monstad, Erik Arvidsson, fantasai,
Franck 'Shift' Qu&eacute;lain, Henri Sivonen, Henrik Lied, H&aring;kon
Wium Lie, Ignacio Javier, James Graham, James M Snell, James Perrett,
Jan-Klaas Kollhof, Jasper Bryant-Greene, Jens Bannmann, J. King, Joel
Spolsky, Johnny Stenback, Jonathan Worent, Jon Perlow, Jukka K. Korpela,
Kai Hendry, Kornel Lesinski, Lachlan Hunt, Larry Page, Laurens Holst,
Logan<!--
on moz irc -->, Lenny Domnitser, L&eacute;onard Bouchet,
Maciej Stachowiak, Malcolm Rowe, Mark Nottingham, Mark Schenk, Martijn
Wargers, Martin Honnen, Matthew Mastracci, Matthew Raymond, Matthew
Thomas, Mattias Waldau, Max Romantschuk, Michael A. Nachbaur, Michael
Gratton, Michael 'Ratt' Iannarelli, Mihai &#x015E;ucan<!--
from ROBO Design -->,
Mike Shaver, Mikko Rantalainen, Neil Deakin, Olav Junker Kj&aelig;r,
Rimantas Liubertas, Robert O'Callahan, Roman Ivanov, S. Mike Dierken,
Shadow2531, Shaun Inman, Simon Pieters, Stephen Ma, Steven Garrity,
Stewart Brodie, Stuart Parmenter, Tantek &Ccedil;elik, Thomas O'Connor,
Tim Altman, Vladimir Vuki&#x0107;evi&#x0107;, and everyone on the WHATWG
Daniel Peng, Darin Fisher, Dave Townsend<!--
Mossop on moz irc -->,
David Baron, David Flanagan, David Hyatt, Derek Featherstone, Dimitri
Glazkov, dolphinling, Doron Rosenberg, Eira Monstad, Erik Arvidsson,
fantasai, Franck 'Shift' Qu&eacute;lain, H&aring;kon Wium Lie, Henri
Sivonen, Henrik Lied, Ignacio Javier, J. King, James Graham, James M
Snell, James Perrett, Jan-Klaas Kollhof, Jasper Bryant-Greene, Jens
Bannmann, Joel Spolsky, Johnny Stenback, Jon Perlow, Jonathan Worent,
Jukka K. Korpela, Kai Hendry, Kornel Lesinski, Lachlan Hunt, Larry Page,
Laurens Holst, Lenny Domnitser, L&eacute;onard Bouchet, Leons Petrazickis,
Logan<!-- on moz irc -->, Maciej Stachowiak, Malcolm Rowe, Mark
Nottingham, Mark Schenk, Martijn Wargers, Martin Honnen, Matthew
Mastracci, Matthew Raymond, Matthew Thomas, Mattias Waldau, Max
Romantschuk, Michael 'Ratt' Iannarelli, Michael A. Nachbaur, Michael
Gratton, Michel Fortin, Mihai &#x015E;ucan<!-- from ROBO
Design -->,
Mike Schinkel, Mike Shaver, Mikko Rantalainen, Neil Deakin, Olav Junker
Kj&aelig;r, Rimantas Liubertas, Robert O'Callahan, Robert Sayre, Roman
Ivanov, S. Mike Dierken, Sam Ruby, Shadow2531, Shaun Inman, Simon Pieters,
Stephen Ma, Steve Runyon, Steven Garrity, Stewart Brodie, Stuart
Parmenter, Tantek &Ccedil;elik, Thomas Broyer, Thomas O'Connor, Tim
Altman, Vladimir Vuki&#x0107;evi&#x0107;, and everyone on the WHATWG
mailing list for their useful and substantial comments.

<p>Special thanks to Richard Williamson for creating the first
Expand Down
93 changes: 59 additions & 34 deletions source
Expand Up @@ -22774,7 +22774,9 @@ function receiver(e) {
<code>hr</code>, <code>br</code>, <code>img</code>,
<code>embed</code>, <code>param</code>, <code>area</code>,
<code>col</code>, <code>input</code><!-- XXX add: ,
<code>command</code>, <code>event-source</code> --></dd>
<code>command</code>, <code>event-source</code> --></dd> <!-- XXX
keep this synchronised with the list of "permitted slash" elements
-->

<dt>CDATA elements</dt>

Expand Down Expand Up @@ -22865,13 +22867,20 @@ function receiver(e) {

<li>Following the tag name, the start tag may have a number of
attributes, the <span title="syntax-attributes">syntax for
which</span> is described below. Attributes must be separated from
each other and from the tag name by one or more <span title="space
character">space characters</span>.</li>
which</span> is described below. Attributes names and unquoted
attribute values must be separated from each other and from the tag
name and the U+002F SOLIDUS character mentioned below (if present)
by one or more <span title="space character">space
characters</span>.</li>

<li>After the attributes, there may be one or more <span
title="space character">space characters</span>.</li>

<li>Then, if the element is one of the void elements, then there
may be a single U+002F SOLIDUS character. This character has no
effect except to appease the markup gods. As this character is
therefore just a symbol of faith, atheists should omit it.</li>

<li>Finally, start tags must be closed by a U+003E GREATER-THAN
SIGN (<code>&gt;</code>) character.</li>

Expand Down Expand Up @@ -23733,8 +23742,9 @@ function receiver(e) {
state</span>.</dd>

<dt>U+002F SOLIDUS (/)</dt>
<dd><span>Parse error</span>. Switch to the <span>before
attribute name state</span>.</dd>
<dd><span>Parse error</span> unless this is a <span>permitted
slash</span>. Switch to the <span>before attribute name
state</span>.</dd>

<dt>Anything else</dt>
<dd>Append the current input character to the current tag token's
Expand Down Expand Up @@ -23772,8 +23782,9 @@ function receiver(e) {
state</span>.</dd>

<dt>U+002F SOLIDUS (/)</dt>
<dd><span>Parse error</span>. Stay in the <span>before
attribute name state</span>.</dd>
<dd><span>Parse error</span> unless this is a <span>permitted
slash</span>. Stay in the <span>before attribute name
state</span>.</dd>

<dt>U+003C LESS-THAN SIGN (&lt;)</dt>
<dt>EOF</dt>
Expand Down Expand Up @@ -23821,8 +23832,9 @@ function receiver(e) {
state</span>.</dd>

<dt>U+002F SOLIDUS (/)</dt>
<dd><span>Parse error</span>. Switch to the <span>before
attribute name state</span>.</dd>
<dd><span>Parse error</span> unless this is a <span>permitted
slash</span>. Switch to the <span>before attribute name
state</span>.</dd>

<dt>U+003C LESS-THAN SIGN (&lt;)</dt>
<dt>EOF</dt>
Expand Down Expand Up @@ -23877,8 +23889,9 @@ function receiver(e) {
state</span>.</dd>

<dt>U+002F SOLIDUS (/)</dt>
<dd><span>Parse error</span>. Switch to the <span>before
attribute name state</span>.</dd>
<dd><span>Parse error</span> unless this is a <span>permitted
slash</span>. Switch to the <span>before attribute name
state</span>.</dd>

<dt>U+003C LESS-THAN SIGN (&lt;)</dt>
<dt>EOF</dt>
Expand Down Expand Up @@ -24359,6 +24372,16 @@ function receiver(e) {
<p>When an end tag token is emitted with attributes, that is a
<span>parse error</span>.</p>

<p>A <dfn>permitted slash</dfn> is a U+002F SOLIDUS character that
is immediately followed by a U+003E GREATER-THAN SIGN, if, and only
if, the current token being processed is a start tag token whose tag
name is one of the following: <code>base</code>, <code>link</code>,
<code>meta</code>, <code>hr</code>, <code>br</code>,
<code>img</code>, <code>embed</code>, <code>param</code>,
<code>area</code>, <code>col</code>, <code>input</code><!-- XXX add:
, <code>command</code>, <code>event-source</code> --></p> <!-- XXX
keep this synchronised with the list of "void elements" -->


<h5>Tokenising entities</h5>

Expand Down Expand Up @@ -28441,28 +28464,30 @@ interface <dfn>TimeoutHandler</dfn> {

<p>Thanks to Aankhen, Aaron Leventhal, Alexey Feldgendler, Anne van
Kesteren, Anthony Hickson, Asbj&oslash;rn Ulsberg, Ben Godfrey, Ben
Meadowcroft, Bjoern Hoehrmann, Boris Zbarsky, Brad Fults, Brad
Neuberg, Brendan Eich, Channy Yun, Charl van
Niekerk<!--status.whatwg.org maintainer-->, Christian Biesinger,
Chriswa, Darin Fisher, Dave Townsend<!-- Mossop on moz irc -->,
David Baron, David Hyatt, Derek Featherstone, Daniel Peng, David
Flanagan, Dimitri Glazkov, dolphinling, Doron Rosenberg, Eira
Monstad, Erik Arvidsson, fantasai, Franck 'Shift' Qu&eacute;lain,
Henri Sivonen, Henrik Lied, H&aring;kon Wium Lie, Ignacio Javier,
James Graham, James M Snell, James Perrett, Jan-Klaas Kollhof,
Jasper Bryant-Greene, Jens Bannmann, J. King, Joel Spolsky, Johnny
Stenback, Jonathan Worent, Jon Perlow, Jukka K. Korpela, Kai Hendry,
Kornel Lesinski, Lachlan Hunt, Larry Page, Laurens Holst, Logan<!--
on moz irc -->, Lenny Domnitser, L&eacute;onard Bouchet, Maciej
Stachowiak, Malcolm Rowe, Mark Nottingham, Mark Schenk, Martijn
Wargers, Martin Honnen, Matthew Mastracci, Matthew Raymond, Matthew
Thomas, Mattias Waldau, Max Romantschuk, Michael A. Nachbaur,
Michael Gratton, Michael 'Ratt' Iannarelli, Mihai &#x015E;ucan<!--
from ROBO Design -->, Mike Shaver, Mikko Rantalainen, Neil Deakin,
Olav Junker Kj&aelig;r, Rimantas Liubertas, Robert O'Callahan, Roman
Ivanov, S. Mike Dierken, Shadow2531, Shaun Inman, Simon Pieters,
Stephen Ma, Steven Garrity, Stewart Brodie, Stuart Parmenter, Tantek
&Ccedil;elik, Thomas O'Connor, Tim Altman, Vladimir
Meadowcroft, Benjamin Hawkes-Lewis, Bjoern Hoehrmann, Boris Zbarsky,
Brad Fults, Brad Neuberg, Brendan Eich, Brett Wilson, Channy Yun,
Charl van Niekerk<!--status.whatwg.org maintainer-->, Christian
Biesinger, Chriswa, Daniel Peng, Darin Fisher, Dave Townsend<!--
Mossop on moz irc -->, David Baron, David Flanagan, David Hyatt,
Derek Featherstone, Dimitri Glazkov, dolphinling, Doron Rosenberg,
Eira Monstad, Erik Arvidsson, fantasai, Franck 'Shift'
Qu&eacute;lain, H&aring;kon Wium Lie, Henri Sivonen, Henrik Lied,
Ignacio Javier, J. King, James Graham, James M Snell, James Perrett,
Jan-Klaas Kollhof, Jasper Bryant-Greene, Jens Bannmann, Joel
Spolsky, Johnny Stenback, Jon Perlow, Jonathan Worent, Jukka
K. Korpela, Kai Hendry, Kornel Lesinski, Lachlan Hunt, Larry Page,
Laurens Holst, Lenny Domnitser, L&eacute;onard Bouchet, Leons
Petrazickis, Logan<!-- on moz irc -->, Maciej Stachowiak, Malcolm
Rowe, Mark Nottingham, Mark Schenk, Martijn Wargers, Martin Honnen,
Matthew Mastracci, Matthew Raymond, Matthew Thomas, Mattias Waldau,
Max Romantschuk, Michael 'Ratt' Iannarelli, Michael A. Nachbaur,
Michael Gratton, Michel Fortin, Mihai &#x015E;ucan<!-- from ROBO
Design -->, Mike Schinkel, Mike Shaver, Mikko Rantalainen, Neil
Deakin, Olav Junker Kj&aelig;r, Rimantas Liubertas, Robert
O'Callahan, Robert Sayre, Roman Ivanov, S. Mike Dierken, Sam Ruby,
Shadow2531, Shaun Inman, Simon Pieters, Stephen Ma, Steve Runyon,
Steven Garrity, Stewart Brodie, Stuart Parmenter, Tantek
&Ccedil;elik, Thomas Broyer, Thomas O'Connor, Tim Altman, Vladimir
Vuki&#x0107;evi&#x0107;, and everyone on the WHATWG mailing list for
their useful and substantial comments.</p>

Expand Down

0 comments on commit 1e78400

Please sign in to comment.