This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25501 - 3.2.4.1 missing discussion of 'empty' content model
Summary: 3.2.4.1 missing discussion of 'empty' content model
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC All
: P2 editorial
Target Milestone: ---
Assignee: steve faulkner
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 25532
  Show dependency treegraph
 
Reported: 2014-04-29 15:21 UTC by Karl Groves
Modified: 2016-04-25 20:28 UTC (History)
5 users (show)

See Also:


Attachments

Description Karl Groves 2014-04-29 15:21:09 UTC
Some elements, such as AREA[1] are described as having an 'empty' content model. However, the section (3.2.4.1) which discusses the types of content models does not include 'empty' as one of the types. In fact, AREA is described under 'Flow' content, as are other elements which are void.

It would be good if, under 3.2.4.1, there was a description of what the 'empty' content model is and what, if any, relationship this has with being a void element.



1 - http://www.w3.org/TR/html5/embedded-content-0.html#the-area-element
Comment 1 steve faulkner 2014-04-29 16:00:38 UTC
(In reply to Karl Groves from comment #0)
> Some elements, such as AREA[1] are described as having an 'empty' content
> model. However, the section (3.2.4.1) which discusses the types of content
> models does not include 'empty' as one of the types. In fact, AREA is
> described under 'Flow' content, as are other elements which are void.
> 
> It would be good if, under 3.2.4.1, there was a description of what the
> 'empty' content model is and what, if any, relationship this has with being
> a void element.
> 
> 
> 
> 1 - http://www.w3.org/TR/html5/embedded-content-0.html#the-area-element

right, I don't understand why all content models are not listed in one place will look into it
Comment 2 Michael[tm] Smith 2014-04-30 14:03:55 UTC
(In reply to Karl Groves from comment #0)
> Some elements, such as AREA[1] are described as having an 'empty' content
> model. However, the section (3.2.4.1) which discusses the types of content
> models does not include 'empty' as one of the types. In fact, AREA is
> described under 'Flow' content, as are other elements which are void.

That's because the area element is itself flow content, right? Which is completely different from what its own individual content model is.

In other words, section 3.2.4.1 doesn't categorize elements according to what their own individual content models are; instead it categorizes them according to what kind of content the elements themselves are.

So we can't add a subsection to 3.2.4.1 that categorizes elements that are empty content. It wouldn't make sense because no element is empty content. The only thing that's empty content is "nothing".

In fact the definition of 'empty' as a category of content is pretty much "the category that includes nothing" or "that includes no content" (no elements, no text).
Comment 3 Karl Groves 2014-04-30 14:20:20 UTC
That's fine. My point is that the same explanation you just gave should be provided in 3.2.4.1 so that a reader doesn't go there looking for an explanation of what the 'Empty' Content Model is and find it missing.
Comment 4 steve faulkner 2014-05-01 08:32:02 UTC
(In reply to Karl Groves from comment #3)
> That's fine. My point is that the same explanation you just gave should be
> provided in 3.2.4.1 so that a reader doesn't go there looking for an
> explanation of what the 'Empty' Content Model is and find it missing.

would 'None' be any clearer:

as the definition of 'content model' says
"Content model
A normative description of what content must be included as children and descendants of the element."
http://www.w3.org/html/wg/drafts/html/master/dom.html#element-dfn-content-model

What must be included as children is nothing in the case of void elements right?
Comment 5 Karl Groves 2014-05-01 12:00:11 UTC
I think Empty is fine, and probably more accurate. Empty should be understood as being a node which has no other element nodes or text nodes.

All I'm suggesting is that this simple clarification be placed in 3.2.4.1
Comment 6 Arron Eicholz 2016-04-25 20:28:27 UTC
HTML5.1 Bugzilla Bug Triage: fixed, nothing content model is now defined. Empty content model has been change to nothing content model.

If this resolution is not satisfactory, please copy the relevant bug details/proposal into a new issue at the W3C HTML5 Issue tracker: https://github.com/w3c/html/issues/new where it will be re-triaged. Thanks!