<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>12359</bug_id>
          
          <creation_ts>2011-03-21 21:44:04 +0000</creation_ts>
          <short_desc>If the content model says it can only contain dt and dd elements then why does it say further down &quot;if a dl contains [...] elements other than dt and dd [...]?</short_desc>
          <delta_ts>2011-08-04 05:13:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>LC1 HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#the-dl-element</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ayg</cc>
    
    <cc>evertvandansen</cc>
    
    <cc>ian</cc>
    
    <cc>jackalmage</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>46891</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-03-21 21:44:04 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/grouping-content.html
Section: http://www.whatwg.org/specs/web-apps/current-work/#the-dl-element

Comment:
If the content model says it can only contain dt and dd elements then why does
it say further down &quot;if a dl contains [...] elements other than dt and dd
[...]?

Posted from: 88.242.70.107
User agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46892</commentid>
    <comment_count>1</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2011-03-21 21:53:03 +0000</bug_when>
    <thetext>Because the spec has to describe how to handle invalid markup, too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46974</commentid>
    <comment_count>2</comment_count>
    <who name="Evert">evertvandansen</who>
    <bug_when>2011-03-24 23:11:34 +0000</bug_when>
    <thetext>Even so, I agree with the poster that this is confusing. At least mention that this applies to invalid code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46985</commentid>
    <comment_count>3</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2011-03-25 16:10:56 +0000</bug_when>
    <thetext>The entire spec works in this way - it describes the authoring requirements, and then describes the browser requirements about what to do when the code is invalid anyway.

Read the developers version of the spec &lt;http://developers.whatwg.org/grouping-content.html#the-dl-element&gt; if you want to only see information meant for page authors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46986</commentid>
    <comment_count>4</comment_count>
    <who name="Evert">evertvandansen</who>
    <bug_when>2011-03-25 16:36:46 +0000</bug_when>
    <thetext>I understand the whole spec works like this, I just think it is somewhat strange that invalid situations are mentioned without stating they are invalid. The invalidity of this situation for example is only noticeable when you compare it to its content model like the poster did, which resulted in his/her confusion.
If I was to write a validator based on this information I wouldn&apos;t mark the situation where the dl had an invalid child as invalid because it never says it is anywhere. In fact the text seems to imply that it is possible. The only information I get that it isn&apos;t is not clear about it and is ambiguous at best.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46990</commentid>
    <comment_count>5</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-03-25 17:50:02 +0000</bug_when>
    <thetext>If you were to write a validator, I hope you&apos;d read the whole spec, not just refer to one part and take it out of context.  Specifically:

&quot;An HTML element must have contents that match the requirements described in the element&apos;s content model.&quot;
http://www.whatwg.org/specs/web-apps/current-work/multipage/content-models.html#content-models

&quot;Content model:
Zero or more groups each consisting of one or more dt elements followed by one or more dd elements.&quot;
http://www.whatwg.org/specs/web-apps/current-work/multipage/grouping-content.html#the-dl-element

However, it would arguably be good to be clearer about this, so I think we should leave the bug open and not try to preempt Ian&apos;s decision.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48319</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-05-08 03:38:00 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: The spec already separates the UA requirements from the authoring conformance criteria  to make that distinction clear, toggle the switch at the top of the page to &quot;Highlight browser rules&quot;.

This spec is very carefully written so that you never have to read between the lines. It means exactly what it says and no more. If text says &quot;When the pot contains an apple&quot;, it doesn&apos;t mean pots are allowed to contain apples. When it says &quot;A pot must only contain an apple&quot;, it doesn&apos;t mean that software is allowed to give up if it contains something other than an apple.

I could hand-hold the reader throughout the specification, but the thing is already 500+ pages long. It would become absolutely insufferable if it was that verbose.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48328</commentid>
    <comment_count>7</comment_count>
    <who name="Evert">evertvandansen</who>
    <bug_when>2011-05-08 11:56:36 +0000</bug_when>
    <thetext>&quot;When the pot contains an apple&quot; *implies* the pot *can* contain an apple, whether it *may* contain one is left open. I would in such cases think it more clear when it says:
&quot;Should the pot illegally contain an apple...&quot; That way it covers both the described situation and the fact that the situation is not allowed/valid.
But then again, English is not my native language so I&apos;ll consent to your trust in the reader. ;-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53398</commentid>
    <comment_count>8</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:13:28 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>