Permalink
Browse files

allow div as a child of dl

align with whatwg, where it makes sense
  • Loading branch information...
stevefaulkner committed Feb 25, 2017
1 parent f0bb541 commit ec2e514d525e7a7191d0287bf5b48a02f4d28312
Showing with 16 additions and 4 deletions.
  1. +16 −4 sections/semantics-grouping-content.include
@@ -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>
@@ -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>
@@ -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>

2 comments on commit ec2e514

@shepard8

This comment has been minimized.

Show comment
Hide comment
@shepard8

shepard8 Jul 28, 2017

There is an unbalanced closing parenthesis on line 1208.

shepard8 replied Jul 28, 2017

There is an unbalanced closing parenthesis on line 1208.

@stevefaulkner

This comment has been minimized.

Show comment
Hide comment
@stevefaulkner

stevefaulkner Jul 28, 2017

Contributor

thanks @shepard8 fixed deeccad

Contributor

stevefaulkner replied Jul 28, 2017

thanks @shepard8 fixed deeccad

Please sign in to comment.