Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[a] (0) Clarify when start tags can be omitted, in the face of empty …
…elements. (credit: sp) (bug 6630)

git-svn-id: http://svn.whatwg.org/webapps@2944 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 1, 2009
1 parent 3a849a3 commit 496654c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
16 changes: 10 additions & 6 deletions index
Expand Up @@ -50999,8 +50999,9 @@ interface <dfn id=messageport>MessagePort</dfn> {
immediately followed by a <a href=#syntax-comments title=syntax-comments>comment</a>.</p>

<!-- <head> -->
<p>A <code><a href=#the-head-element>head</a></code> element's <a href=#syntax-start-tag title=syntax-start-tag>start tag</a> may be omitted if the
first thing inside the <code><a href=#the-head-element>head</a></code> element is an element.</p>
<p>A <code><a href=#the-head-element>head</a></code> element's <a href=#syntax-start-tag title=syntax-start-tag>start tag</a> may be omitted <!--if the
element is empty, or--> if the first thing inside the
<code><a href=#the-head-element>head</a></code> element is an element.</p>

<!-- </head> -->
<p>A <code><a href=#the-head-element>head</a></code> element's <a href=#syntax-end-tag title=syntax-end-tag>end
Expand All @@ -51009,8 +51010,8 @@ interface <dfn id=messageport>MessagePort</dfn> {

<!-- <body> -->
<p>A <code><a href=#the-body-element>body</a></code> element's <a href=#syntax-start-tag title=syntax-start-tag>start tag</a> may be omitted if the
first thing inside the <code><a href=#the-body-element>body</a></code> element is not a
<a href=#space-character>space character</a> or a <a href=#syntax-comments title=syntax-comments>comment</a>, except if the first thing
element is empty, or if the first thing inside the <code><a href=#the-body-element>body</a></code>
element is not a <a href=#space-character>space character</a> or a <a href=#syntax-comments title=syntax-comments>comment</a>, except if the first thing
inside the <code><a href=#the-body-element>body</a></code> element is a <code><a href=#script>script</a></code> or
<code><a href=#the-style-element>style</a></code> element. <!-- Note that even if the </head> end
tag is present, the parser makes <style> and <script> elements
Expand Down Expand Up @@ -51099,7 +51100,8 @@ interface <dfn id=messageport>MessagePort</dfn> {
<p>A <code><a href=#the-colgroup-element>colgroup</a></code> element's <a href=#syntax-start-tag title=syntax-start-tag>start tag</a> may be omitted if the
first thing inside the <code><a href=#the-colgroup-element>colgroup</a></code> element is a
<code><a href=#the-col-element>col</a></code> element, and if the element is not immediately
preceded by another <code><a href=#the-colgroup-element>colgroup</a></code> element whose <a href=#syntax-end-tag title=syntax-end-tag>end tag</a> has been omitted.</p>
preceded by another <code><a href=#the-colgroup-element>colgroup</a></code> element whose <a href=#syntax-end-tag title=syntax-end-tag>end tag</a> has been omitted. (It can't be
omitted if the element is empty.)</p>

<!-- </colgroup> -->
<p>A <code><a href=#the-colgroup-element>colgroup</a></code> element's <a href=#syntax-end-tag title=syntax-end-tag>end tag</a> may be omitted if the
Expand All @@ -51113,12 +51115,14 @@ interface <dfn id=messageport>MessagePort</dfn> {
element.</p>

<!-- <tbody> -->

<p>A <code><a href=#the-tbody-element>tbody</a></code> element's <a href=#syntax-start-tag title=syntax-start-tag>start tag</a> may be omitted if the
first thing inside the <code><a href=#the-tbody-element>tbody</a></code> element is a
<code><a href=#the-tr-element>tr</a></code> element, and if the element is not immediately
preceded by a <code><a href=#the-tbody-element>tbody</a></code>, <code><a href=#the-thead-element>thead</a></code>, or
<code><a href=#the-tfoot-element>tfoot</a></code> element whose <a href=#syntax-end-tag title=syntax-end-tag>end
tag</a> has been omitted.</p>
tag</a> has been omitted. (It can't be omitted if the element is
empty.)</p>

<!-- </tbody> -->
<p>A <code><a href=#the-tbody-element>tbody</a></code> element's <a href=#syntax-end-tag title=syntax-end-tag>end
Expand Down
16 changes: 10 additions & 6 deletions source
Expand Up @@ -62742,8 +62742,9 @@ interface <dfn>MessagePort</dfn> {

<!-- <head> -->
<p>A <code>head</code> element's <span
title="syntax-start-tag">start tag</span> may be omitted if the
first thing inside the <code>head</code> element is an element.</p>
title="syntax-start-tag">start tag</span> may be omitted <!--if the
element is empty, or--> if the first thing inside the
<code>head</code> element is an element.</p>

<!-- </head> -->
<p>A <code>head</code> element's <span title="syntax-end-tag">end
Expand All @@ -62754,8 +62755,8 @@ interface <dfn>MessagePort</dfn> {
<!-- <body> -->
<p>A <code>body</code> element's <span
title="syntax-start-tag">start tag</span> may be omitted if the
first thing inside the <code>body</code> element is not a
<span>space character</span> or a <span
element is empty, or if the first thing inside the <code>body</code>
element is not a <span>space character</span> or a <span
title="syntax-comments">comment</span>, except if the first thing
inside the <code>body</code> element is a <code>script</code> or
<code>style</code> element. <!-- Note that even if the </head> end
Expand Down Expand Up @@ -62849,7 +62850,8 @@ interface <dfn>MessagePort</dfn> {
first thing inside the <code>colgroup</code> element is a
<code>col</code> element, and if the element is not immediately
preceded by another <code>colgroup</code> element whose <span
title="syntax-end-tag">end tag</span> has been omitted.</p>
title="syntax-end-tag">end tag</span> has been omitted. (It can't be
omitted if the element is empty.)</p>

<!-- </colgroup> -->
<p>A <code>colgroup</code> element's <span
Expand All @@ -62865,13 +62867,15 @@ interface <dfn>MessagePort</dfn> {
element.</p>

<!-- <tbody> -->

<p>A <code>tbody</code> element's <span
title="syntax-start-tag">start tag</span> may be omitted if the
first thing inside the <code>tbody</code> element is a
<code>tr</code> element, and if the element is not immediately
preceded by a <code>tbody</code>, <code>thead</code>, or
<code>tfoot</code> element whose <span title="syntax-end-tag">end
tag</span> has been omitted.</p>
tag</span> has been omitted. (It can't be omitted if the element is
empty.)</p>

<!-- </tbody> -->
<p>A <code>tbody</code> element's <span title="syntax-end-tag">end
Expand Down

0 comments on commit 496654c

Please sign in to comment.