{"action":"created","issue":{"url":"https://api.github.com/repos/whatwg/html/issues/1937","repository_url":"https://api.github.com/repos/whatwg/html","labels_url":"https://api.github.com/repos/whatwg/html/issues/1937/labels{/name}","comments_url":"https://api.github.com/repos/whatwg/html/issues/1937/comments","events_url":"https://api.github.com/repos/whatwg/html/issues/1937/events","html_url":"https://github.com/whatwg/html/issues/1937","id":184197968,"number":1937,"title":"Reconsider FAQ: <di> or <li> wrapping <dt> and <dd>","user":{"login":"Crissov","id":6200185,"avatar_url":"https://avatars.githubusercontent.com/u/6200185?v=3","gravatar_id":"","url":"https://api.github.com/users/Crissov","html_url":"https://github.com/Crissov","followers_url":"https://api.github.com/users/Crissov/followers","following_url":"https://api.github.com/users/Crissov/following{/other_user}","gists_url":"https://api.github.com/users/Crissov/gists{/gist_id}","starred_url":"https://api.github.com/users/Crissov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crissov/subscriptions","organizations_url":"https://api.github.com/users/Crissov/orgs","repos_url":"https://api.github.com/users/Crissov/repos","events_url":"https://api.github.com/users/Crissov/events{/privacy}","received_events_url":"https://api.github.com/users/Crissov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/whatwg/html/labels/addition/proposal","name":"addition/proposal","color":"d4c5f9"},{"url":"https://api.github.com/repos/whatwg/html/labels/document%20conformance","name":"document conformance","color":"fad8c7"}],"state":"open","locked":false,"assignee":{"login":"zcorpan","id":244772,"avatar_url":"https://avatars.githubusercontent.com/u/244772?v=3","gravatar_id":"","url":"https://api.github.com/users/zcorpan","html_url":"https://github.com/zcorpan","followers_url":"https://api.github.com/users/zcorpan/followers","following_url":"https://api.github.com/users/zcorpan/following{/other_user}","gists_url":"https://api.github.com/users/zcorpan/gists{/gist_id}","starred_url":"https://api.github.com/users/zcorpan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zcorpan/subscriptions","organizations_url":"https://api.github.com/users/zcorpan/orgs","repos_url":"https://api.github.com/users/zcorpan/repos","events_url":"https://api.github.com/users/zcorpan/events{/privacy}","received_events_url":"https://api.github.com/users/zcorpan/received_events","type":"User","site_admin":false},"assignees":[{"login":"zcorpan","id":244772,"avatar_url":"https://avatars.githubusercontent.com/u/244772?v=3","gravatar_id":"","url":"https://api.github.com/users/zcorpan","html_url":"https://github.com/zcorpan","followers_url":"https://api.github.com/users/zcorpan/followers","following_url":"https://api.github.com/users/zcorpan/following{/other_user}","gists_url":"https://api.github.com/users/zcorpan/gists{/gist_id}","starred_url":"https://api.github.com/users/zcorpan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zcorpan/subscriptions","organizations_url":"https://api.github.com/users/zcorpan/orgs","repos_url":"https://api.github.com/users/zcorpan/repos","events_url":"https://api.github.com/users/zcorpan/events{/privacy}","received_events_url":"https://api.github.com/users/zcorpan/received_events","type":"User","site_admin":false}],"milestone":null,"comments":27,"created_at":"2016-10-20T10:58:38Z","updated_at":"2016-10-26T12:59:00Z","closed_at":null,"body":"Explicitly grouping `dt` and `dd` together has been proposed so often that it’s featured in the [Rationale](https://wiki.whatwg.org/wiki/Rationale#Why_isn.E2.80.99t_there_a_grouping-type_element_for_description_lists_to_represent_individual_name-value_groups_.28e.g..2C_a_.E2.80.9Cdli.E2.80.9D_element.29.3F_It_would_make_styling_as_well_as_adding_microdata_to_individual_groups_much_easier..5B32.5D) and has been in the [FAQ](https://wiki.whatwg.org/wiki/FAQ#HTML_should_group_.3Cdt.3Es_and_.3Cdd.3Es_together_in_.3Cdi.3Es.21) since [2008](https://wiki.whatwg.org/index.php?title=FAQ&diff=3357&oldid=3356), getting further explained in [2010](https://wiki.whatwg.org/index.php?title=FAQ&diff=4917&oldid=4876).\r\n\r\n> This is a styling problem and should be fixed in CSS. There's no reason to add a grouping element to HTML, as the semantics are already unambiguous.\r\n\r\nThere will be no CSS pseudo-element `::wrap` in the forseeable future, see https://github.com/w3c/csswg-drafts/issues/588. I believe it’s therefore worth to reevaluate the use cases and review the FAQ entry.\r\n\r\n## Current state\r\nThe [parsing rules for `dl`](https://html.spec.whatwg.org/multipage/semantics.html#the-dl-element) are quite clear, but even if browsers implemented them perfectly, there’d still be no way to take advantage of the structure in CSS.\r\n\r\n``` html\r\n<dl>\r\n  <dt>term <dt>alias <dd>definition\r\n  <dt>term <dd>definition <dd>alternate definition\r\n  <dt>term <dt>alias <dd>definition <dd>alternate definition\r\n</dl>\r\n```\r\n\r\n## `di` Wrapper\r\nThis has also been called `dli`. It has all the problems of any new element type, and some more.\r\n\r\n``` html\r\n<dl>\r\n  <di><dt>term <dt>alias <dd>definition</di>\r\n  <di><dt>term <dd>definition <dd>alternate definition</di>\r\n  <di><dt>term <dt>alias <dd>definition <dd>alternate definition</di>\r\n</dl>\r\n```\r\n\r\n## `li` Wrapper\r\nIt has all the problems of using existing elements in places where they were not supposed to occur previously, which can be quite unexpected.\r\n\r\n``` html\r\n<dl>\r\n  <li><dt>term <dt>alias <dd>definition</li>\r\n  <li><dt>term <dd>definition <dd>alternate definition</li>\r\n  <li><dt>term <dt>alias <dd>definition <dd>alternate definition</li>\r\n</dl>\r\n```\r\n\r\n## `dt`/`dd` in `li`\r\nIt may be worth exploring whether ditching `dl` has better backwards compatibility than changing it.\r\n\r\n``` html\r\n<ul>\r\n  <li><dt>term <dt>alias <dd>definition</li>\r\n  <li><dt>term <dd>definition <dd>alternate definition</li>\r\n  <li><dt>term <dt>alias <dd>definition <dd>alternate definition</li>\r\n</ul>\r\n```\r\n\r\n## Generic `list` element\r\n\r\n``` html\r\n<list>\r\n  <lh>header\r\n  <dt>term <dd>definition\r\n  <di><dt>term <dt>alias <dd>definition</di>\r\n  <di><dt>term <dd>definition <dd>alternate definition</di>\r\n  <di><dt>term <dt>alias <dd>definition <dd>alternate definition</di>\r\n  <li>item\r\n</list>\r\n```"},"comment":{"url":"https://api.github.com/repos/whatwg/html/issues/comments/256339241","html_url":"https://github.com/whatwg/html/issues/1937#issuecomment-256339241","issue_url":"https://api.github.com/repos/whatwg/html/issues/1937","id":256339241,"user":{"login":"zcorpan","id":244772,"avatar_url":"https://avatars.githubusercontent.com/u/244772?v=3","gravatar_id":"","url":"https://api.github.com/users/zcorpan","html_url":"https://github.com/zcorpan","followers_url":"https://api.github.com/users/zcorpan/followers","following_url":"https://api.github.com/users/zcorpan/following{/other_user}","gists_url":"https://api.github.com/users/zcorpan/gists{/gist_id}","starred_url":"https://api.github.com/users/zcorpan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zcorpan/subscriptions","organizations_url":"https://api.github.com/users/zcorpan/orgs","repos_url":"https://api.github.com/users/zcorpan/repos","events_url":"https://api.github.com/users/zcorpan/events{/privacy}","received_events_url":"https://api.github.com/users/zcorpan/received_events","type":"User","site_admin":false},"created_at":"2016-10-26T12:59:00Z","updated_at":"2016-10-26T12:59:00Z","body":"> Well if it is backwards compatible anyway I personally don't see a reason not to allow <div> for grouping. \r\n\r\nGreat!\r\n\r\n> However I still think that at the same time it should be decided to add li or dg or di support.\r\n\r\nI think they should not be added."}}
{"actor":{"display_login":"zcorpan"}}