From ec2e514d525e7a7191d0287bf5b48a02f4d28312 Mon Sep 17 00:00:00 2001 From: stevefaulkner Date: Sat, 25 Feb 2017 17:29:45 +0000 Subject: [PATCH] allow div as a child of dl align with whatwg, where it makes sense --- sections/semantics-grouping-content.include | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/sections/semantics-grouping-content.include b/sections/semantics-grouping-content.include index 71bf2f2bc6..d6f8f771c2 100644 --- a/sections/semantics-grouping-content.include +++ b/sections/semantics-grouping-content.include @@ -1178,9 +1178,12 @@
Where flow content is expected.
Content model:
- 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 script-supporting elements.
+
+ Or: One or more div elements, optionally intermixed with script-supporting elements. +
Tag omission in text/html:
Neither tag is omissible
Content attributes:
@@ -1200,9 +1203,15 @@ - The <{dl}> element represents a description list of zero or more term-description groups. Each term-description group consists of one or more terms (represented by <{dt}> elements), and one or more descriptions (represented by <{dd}> elements). + The <{dl}> element represents a description list of zero or more term-description groups. + Each term-description group 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 dt and dd elements that are children of + <{div}> element children. Within a single <{dl}> element. - Term-description groups may be names and definitions, questions and answers, categories and topics, or any other groups of term-description pairs. + Term-description groups may be names and definitions, questions and answers, categories + and topics, or any other groups of term-description pairs.

In this example a <{dl}> is used to represent a simple list of names and descriptions:

@@ -1982,8 +1991,11 @@
Palpable content.
Contexts in which this element can be used:
Where flow content is expected.
+
As a child of a <{dl}> element.
Content model:
-
Flow content.
+
If the element is a child of a dl element: one or more <{dt}> elements + followed by one or more <{dd}> elements, optionally intermixed with script-supporting elements. +
If the element is not a child of a dl element: Flow content.
Tag omission in text/html:
Neither tag is omissible
Content attributes: