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 14690 - <a> should be allowed as a child of <dl> Current browsers allow this already. A semantic use case is file downlads <dl><a href="filename1.pdf"><dt>Filename</dt><dd>description of file</dd><dd>filetype</dd></a>etc...</dl>.
Summary: <a> should be allowed as a child of <dl> Current browsers allow this already....
Status: RESOLVED WONTFIX
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
: 14691 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-11-03 21:19 UTC by contributor
Modified: 2012-07-20 02:31 UTC (History)
3 users (show)

See Also:


Attachments
An example of a common file download layout. (26.77 KB, image/jpeg)
2011-11-03 22:09 UTC, Jonathan Worent
Details

Description contributor 2011-11-03 21:19:32 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/grouping-content.html
Multipage: http://www.whatwg.org/C#the-dl-element
Complete: http://www.whatwg.org/c#the-dl-element

Comment:
<a> should be allowed as a child of <dl> Current browsers allow this already.
A semantic use case is file downlads <dl><a
href="filename1.pdf"><dt>Filename</dt><dd>description of
file</dd><dd>filetype</dd></a>etc...</dl>. 

Posted from: 173.165.21.33
User agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
Comment 1 Jonathan Worent 2011-11-03 22:09:23 UTC
Created attachment 1041 [details]
An example of a common file download layout.
Comment 2 Jonathan Worent 2011-11-03 22:10:52 UTC
Similarly, <div> should be allowed as a child of <dl>.
Comment 3 Jonathan Worent 2011-11-03 22:12:03 UTC
*** Bug 14691 has been marked as a duplicate of this bug. ***
Comment 4 Ian 'Hixie' Hickson 2011-11-04 00:44:29 UTC
Turns out the browsers actually don't support this, and supporting it is hard given the parser.

Consider, e.g., the resulting DOM tree for:

   <dl>
     <dt> name 1
     <dd> value 1
     <a>
      <dt> name 2
      <dd> value 2
     </a>
   </dl>
Comment 5 Jonathan Worent 2012-07-18 18:57:01 UTC
Whats the basis for the claim that browsers don't support this? I tested this in all the current browsers and it works fine. That sounds like currently allow this to me.
Comment 6 Ian 'Hixie' Hickson 2012-07-20 02:31:43 UTC
Check the actual DOM of the example above:
   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1672

There's three <a> elements.