Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

Commit

Permalink
allow div as a child of dl
Browse files Browse the repository at this point in the history
align with whatwg, where it makes sense
  • Loading branch information
stevefaulkner committed Feb 25, 2017
1 parent f0bb541 commit ec2e514
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions sections/semantics-grouping-content.include
Expand Up @@ -1178,9 +1178,12 @@
<dd>Where <a>flow content</a> is expected.</dd>
<dt><a>Content model</a>:</dt>
<dd>
Zero or more groups each consisting of one or more <{dt}> elements followed by one or
Either:Zero or more groups each consisting of one or more <{dt}> elements followed by one or
more <{dd}> elements, optionally intermixed with <a>script-supporting elements</a>.
</dd>
<dd>
Or: One or more div elements, optionally intermixed with script-supporting elements.
</dd>
<dt><a>Tag omission in text/html</a>:</dt>
<dd>Neither tag is omissible</dd>
<dt><a>Content attributes</a>:</dt>
Expand All @@ -1200,9 +1203,15 @@
</dd>
</dl>

The <{dl}> element <a>represents</a> a description list of zero or more <dfn>term-description groups</dfn>. Each <a>term-description group</a> consists of one or more terms (represented by <{dt}> elements), and one or more descriptions (represented by <{dd}> elements).
The <{dl}> element <a>represents</a> a description list of zero or more <dfn>term-description groups</dfn>.
Each <a>term-description group</a> consists of one or more terms (represented by <{dt}> elements)
possibly as children of a <{div}> element child), and one or more descriptions (represented by
<{dd}> elements possibly as children of a <{div}> element child), ignoring any nodes other than <{dt}>
and <{dd}> element children, and <code>dt</code> and <code>dd</code> elements that are children of
<{div}> element children. Within a single <{dl}> element.

<a>Term-description groups</a> may be names and definitions, questions and answers, categories and topics, or any other groups of term-description pairs.
<a>Term-description groups</a> may be names and definitions, questions and answers, categories
and topics, or any other groups of term-description pairs.

<div class="example">
<p>In this example a <{dl}> is used to represent a simple list of names and descriptions:</p>
Expand Down Expand Up @@ -1982,8 +1991,11 @@
<dd><a>Palpable content</a>.</dd>
<dt><a>Contexts in which this element can be used</a>:</dt>
<dd>Where <a>flow content</a> is expected.</dd>
<dd>As a child of a <{dl}> element.</dd>
<dt><a>Content model</a>:</dt>
<dd><a>Flow content</a>.</dd>
<dd>If the element is a child of a <code>dl</code> element: one or more <{dt}> elements
followed by one or more <{dd}> elements, optionally intermixed with script-supporting elements.
<dd> If the element is not a child of a <code>dl</code> element: <a>Flow content</a>.</dd>
<dt><a>Tag omission in text/html</a>:</dt>
<dd>Neither tag is omissible</dd>
<dt><a>Content attributes</a>:</dt>
Expand Down

2 comments on commit ec2e514

@shepard8
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an unbalanced closing parenthesis on line 1208.

@stevefaulkner
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @shepard8 fixed deeccad

Please sign in to comment.