Skip to content

Commit

Permalink
Address some of biesi's comments for content handling; fix whitespace…
Browse files Browse the repository at this point in the history
… and comment handling in the parser

git-svn-id: http://svn.whatwg.org/webapps@42 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 24, 2006
1 parent 9977b70 commit af35f43
Show file tree
Hide file tree
Showing 2 changed files with 315 additions and 73 deletions.
199 changes: 166 additions & 33 deletions index
Expand Up @@ -35,7 +35,7 @@

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

<h2 class="no-num no-toc" id="working">Working Draft &mdash; 22 April 2006</h2>
<h2 class="no-num no-toc" id="working">Working Draft &mdash; 24 April 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 @@ -13093,13 +13093,13 @@ interface <dfn id="storageitem">StorageItem</dfn> {
the user what the site in question is.</p>
</dl>

<p>User agents may do whatever they like when the methods are called. A UA
could, for instance, prompt the user and offer the user the opportunity to
add the site to a shortlist of handlers, or make the handlers his default,
or cancel the request. UAs could provide such a UI through modal UI or
through a non-modal transient notification interface. UAs could also
simply silently collect the information, providing it only when relevant
to the user.
<p>User agents may, within the constraints described in this section, do
whatever they like when the methods are called. A UA could, for instance,
prompt the user and offer the user the opportunity to add the site to a
shortlist of handlers, or make the handlers his default, or cancel the
request. UAs could provide such a UI through modal UI or through a
non-modal transient notification interface. UAs could also simply silently
collect the information, providing it only when relevant to the user.

<p>User agents should raise <span title="security exception">security
exceptions</span> if the methods are called with <var
Expand All @@ -13112,6 +13112,10 @@ interface <dfn id="storageitem">StorageItem</dfn> {
title="">uri</var> argument passed to one of these methods does not
contain the exact literal string "<code>%s</code>".

<p>User agents must not raise any other exceptions (other than
binding-specific exceptions, such as for an incorrect number of arguments
in an ECMAScript implementation).

<p>This section does not define how the pages registered by these methods
are used, beyond the requirements on how to process the <var>uri</var>
value (see above). To some extent, the <span title="navigating across
Expand Down Expand Up @@ -19663,26 +19667,6 @@ function receiver(e) {
<dd>
<p><span><a href="#parse">Parse error</a></span>. Ignore the token.</p>

<dt>A comment token

<dd>
<p>Append a <code>Comment</code> node to the <span><a
href="#current3">current node</a></span> with the <code
title="">data</code> attribute set to the data given in the comment
token.</p>

<dt>A character token that is one of one of U+0009 CHARACTER TABULATION,
U+000A LINE FEED (LF), U+000B LINE TABULATION, U+000C FORM FEED (FF), or
U+0020 SPACE

<dd>
<p><span><a href="#reconstruct">Reconstruct the active formatting
elements</a></span>, if any.</p>

<p><span title="append a character"><a href="#append">Append the
character</a></span> to the <span><a href="#current3">current
node</a></span>.</p>

<dt>A start tag token with the tag name "html"

<dd>
Expand All @@ -19707,6 +19691,23 @@ function receiver(e) {
<p>Handle the token as follows:</p>

<dl class="switch">
<dt>A character token that is one of one of U+0009 CHARACTER
TABULATION, U+000A LINE FEED (LF), U+000B LINE TABULATION, U+000C
FORM FEED (FF), or U+0020 SPACE

<dd>
<p><span title="append a character"><a href="#append">Append the
character</a></span> to the <span><a href="#current3">current
node</a></span>.</p>

<dt>A comment token

<dd>
<p>Append a <code>Comment</code> node to the <span><a
href="#current3">current node</a></span> with the <code
title="">data</code> attribute set to the data given in the comment
token.</p>

<dt>A start tag token with the tag name "head"

<dd>
Expand Down Expand Up @@ -19770,6 +19771,23 @@ function receiver(e) {
start tags are similar, but not identical.</p>

<dl class="switch">
<dt>A character token that is one of one of U+0009 CHARACTER
TABULATION, U+000A LINE FEED (LF), U+000B LINE TABULATION, U+000C
FORM FEED (FF), or U+0020 SPACE

<dd>
<p><span title="append a character"><a href="#append">Append the
character</a></span> to the <span><a href="#current3">current
node</a></span>.</p>

<dt>A comment token

<dd>
<p>Append a <code>Comment</code> node to the <span><a
href="#current3">current node</a></span> with the <code
title="">data</code> attribute set to the data given in the comment
token.</p>

<dt>A start tag with the tag name "title"

<dd>
Expand Down Expand Up @@ -19938,6 +19956,23 @@ function receiver(e) {
<p>Handle the token as follows:</p>

<dl class="switch">
<dt>A character token that is one of one of U+0009 CHARACTER
TABULATION, U+000A LINE FEED (LF), U+000B LINE TABULATION, U+000C
FORM FEED (FF), or U+0020 SPACE

<dd>
<p><span title="append a character"><a href="#append">Append the
character</a></span> to the <span><a href="#current3">current
node</a></span>.</p>

<dt>A comment token

<dd>
<p>Append a <code>Comment</code> node to the <span><a
href="#current3">current node</a></span> with the <code
title="">data</code> attribute set to the data given in the comment
token.</p>

<dt>A start tag token with the tag name "body"

<dd>
Expand Down Expand Up @@ -19988,6 +20023,14 @@ function receiver(e) {
token's character</a></span> to the <span><a
href="#current3">current node</a></span>.</p>

<dt>A comment token

<dd>
<p>Append a <code>Comment</code> node to the <span><a
href="#current3">current node</a></span> with the <code
title="">data</code> attribute set to the data given in the comment
token.</p>

<dt>A start tag token whose tag name is "script"

<dd>
Expand Down Expand Up @@ -20846,6 +20889,23 @@ function receiver(e) {

<dd>
<dl class="switch">
<dt>A character token that is one of one of U+0009 CHARACTER
TABULATION, U+000A LINE FEED (LF), U+000B LINE TABULATION, U+000C
FORM FEED (FF), or U+0020 SPACE

<dd>
<p><span title="append a character"><a href="#append">Append the
character</a></span> to the <span><a href="#current3">current
node</a></span>.</p>

<dt>A comment token

<dd>
<p>Append a <code>Comment</code> node to the <span><a
href="#current3">current node</a></span> with the <code
title="">data</code> attribute set to the data given in the comment
token.</p>

<dt>A start tag whose tag name is "caption"

<dd>
Expand Down Expand Up @@ -21011,6 +21071,23 @@ function receiver(e) {

<dd>
<dl class="switch">
<dt>A character token that is one of one of U+0009 CHARACTER
TABULATION, U+000A LINE FEED (LF), U+000B LINE TABULATION, U+000C
FORM FEED (FF), or U+0020 SPACE

<dd>
<p><span title="append a character"><a href="#append">Append the
character</a></span> to the <span><a href="#current3">current
node</a></span>.</p>

<dt>A comment token

<dd>
<p>Append a <code>Comment</code> node to the <span><a
href="#current3">current node</a></span> with the <code
title="">data</code> attribute set to the data given in the comment
token.</p>

<dt>A start tag whose tag name is "col"

<dd>
Expand Down Expand Up @@ -21300,6 +21377,14 @@ function receiver(e) {
token's character</a></span> to the <span><a
href="#current3">current node</a></span>.</p>

<dt>A comment token

<dd>
<p>Append a <code>Comment</code> node to the <span><a
href="#current3">current node</a></span> with the <code
title="">data</code> attribute set to the data given in the comment
token.</p>

<dt>A start tag token whose tag name is "optgroup"

<dd>
Expand Down Expand Up @@ -21390,6 +21475,25 @@ function receiver(e) {
<p>Handle the token as follows:</p>

<dl class="switch">
<dt>A character token that is one of one of U+0009 CHARACTER
TABULATION, U+000A LINE FEED (LF), U+000B LINE TABULATION, U+000C
FORM FEED (FF), or U+0020 SPACE

<dd>
<p><span title="append a character"><a href="#append">Append the
character</a></span> to the first element in the <span><a
href="#stack">stack of open elements</a></span> (the <code><a
href="#html0">html</a></code> element).</p>

<dt>A comment token

<dd>
<p>Append a <code>Comment</code> node to the first element in the
<span><a href="#stack">stack of open elements</a></span> (the
<code><a href="#html0">html</a></code> element), with the <code
title="">data</code> attribute set to the data given in the comment
token.</p>

<dt>An end tag with the tag name "html"

<dd>
Expand All @@ -21410,18 +21514,30 @@ function receiver(e) {
reprocess the token.</p>
</dl>

<p class="note">Whitespace between "<code>&lt;/body></code>" and
"<code>&lt;/html></code>" tags in the markup will appear in the DOM as
child text nodes of the <code><a href="#body0">body</a></code>
element.</p>

<dt>If the <span><a href="#insertion">insertion mode</a></span> is "in
frameset"

<dd>
<p>Handle the token as follows:</p>

<dl class="switch">
<dt>A character token that is one of one of U+0009 CHARACTER
TABULATION, U+000A LINE FEED (LF), U+000B LINE TABULATION, U+000C
FORM FEED (FF), or U+0020 SPACE

<dd>
<p><span title="append a character"><a href="#append">Append the
character</a></span> to the <span><a href="#current3">current
node</a></span>.</p>

<dt>A comment token

<dd>
<p>Append a <code>Comment</code> node to the <span><a
href="#current3">current node</a></span> with the <code
title="">data</code> attribute set to the data given in the comment
token.</p>

<dt>A start tag with the tag name "frameset"

<dd>
Expand Down Expand Up @@ -21476,6 +21592,23 @@ function receiver(e) {
<p>Handle the token as follows:</p>

<dl class="switch">
<dt>A character token that is one of one of U+0009 CHARACTER
TABULATION, U+000A LINE FEED (LF), U+000B LINE TABULATION, U+000C
FORM FEED (FF), or U+0020 SPACE

<dd>
<p><span title="append a character"><a href="#append">Append the
character</a></span> to the <span><a href="#current3">current
node</a></span>.</p>

<dt>A comment token

<dd>
<p>Append a <code>Comment</code> node to the <span><a
href="#current3">current node</a></span> with the <code
title="">data</code> attribute set to the data given in the comment
token.</p>

<dt>An end tag with the tag name "html"

<dd>
Expand Down

0 comments on commit af35f43

Please sign in to comment.