{"action":"created","issue":{"url":"https://api.github.com/repos/validator/validator/issues/407","repository_url":"https://api.github.com/repos/validator/validator","labels_url":"https://api.github.com/repos/validator/validator/issues/407/labels{/name}","comments_url":"https://api.github.com/repos/validator/validator/issues/407/comments","events_url":"https://api.github.com/repos/validator/validator/issues/407/events","html_url":"https://github.com/validator/validator/issues/407","id":189293024,"number":407,"title":"Allow more than one main element in an HTML document","user":{"login":"GrahamHannington","id":8519708,"avatar_url":"https://avatars.githubusercontent.com/u/8519708?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamHannington","html_url":"https://github.com/GrahamHannington","followers_url":"https://api.github.com/users/GrahamHannington/followers","following_url":"https://api.github.com/users/GrahamHannington/following{/other_user}","gists_url":"https://api.github.com/users/GrahamHannington/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamHannington/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamHannington/subscriptions","organizations_url":"https://api.github.com/users/GrahamHannington/orgs","repos_url":"https://api.github.com/users/GrahamHannington/repos","events_url":"https://api.github.com/users/GrahamHannington/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamHannington/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-15T03:48:03Z","updated_at":"2016-11-15T06:10:36Z","closed_at":null,"body":"If an HTML document contains more than one main element, `vnu.jar` (v.Nu 16.6.29) reports the following error message:\r\n\r\n> A document must not include more than one “main” element\r\n\r\nHowever, according to the [WHATWG HTML Living Standard](https://html.spec.whatwg.org/multipage/semantics.html#the-main-element):\r\n\r\n> There is no restriction as to the number of main elements in a document. Indeed, there are many cases where it would make sense to have multiple main elements.\r\n\r\nXHTML test case:\r\n\r\n```XHTML\r\n<!DOCTYPE html>\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\" xml:lang=\"en\">\r\n  <head>\r\n    <meta charset=\"utf-8\"/>\r\n    <title>Test case: Multiple main elements</title>\r\n  </head>\r\n  <body>\r\n    <main>\r\n      <p>First.</p>\r\n    </main>\r\n    <main>\r\n      <p>Second.</p>\r\n    </main>\r\n  </body>\r\n</html>\r\n```\r\n\r\nRelated messages from v.Nu:\r\n\r\n- The Content-Type was “application/xhtml+xml”.\r\n- Using the XML parser (not resolving external entities).\r\n- Using the preset for XHTML + SVG 1.1 + MathML 3.0 + RDFa Lite 1.1 based on the root namespace.\r\n"},"comment":{"url":"https://api.github.com/repos/validator/validator/issues/comments/260556266","html_url":"https://github.com/validator/validator/issues/407#issuecomment-260556266","issue_url":"https://api.github.com/repos/validator/validator/issues/407","id":260556266,"user":{"login":"GrahamHannington","id":8519708,"avatar_url":"https://avatars.githubusercontent.com/u/8519708?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamHannington","html_url":"https://github.com/GrahamHannington","followers_url":"https://api.github.com/users/GrahamHannington/followers","following_url":"https://api.github.com/users/GrahamHannington/following{/other_user}","gists_url":"https://api.github.com/users/GrahamHannington/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamHannington/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamHannington/subscriptions","organizations_url":"https://api.github.com/users/GrahamHannington/orgs","repos_url":"https://api.github.com/users/GrahamHannington/repos","events_url":"https://api.github.com/users/GrahamHannington/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamHannington/received_events","type":"User","site_admin":false},"created_at":"2016-11-15T06:10:36Z","updated_at":"2016-11-15T06:10:36Z","body":"> you have to _build_ the jar with a profile.\r\n\r\nGotcha, thanks for the tip.\r\n\r\n> All the jars I publish are built with the default profile, which corresponds to the upstream HTML spec.\r\n\r\nWould that - the fact that the jars you publish correspond to the upstream HTML spec - be worth mentioning on the \"[The Nu Html Checker](https://validator.github.io/validator/)\" web page?\r\n\r\nI'm curious about the term \"upstream HTML\" spec. I refer to that spec as the \"WHATWG HTML\r\nLiving Standard\", based on the heading of the corresponding web page, and its parent website (and corresponding web address). I realize that the leading qualifier \"WHATWG\" might be redundant - what other \"HTML Living Standard\" is there? - but I include it anyway, as an explicit reminder of its provenance.\r\n\r\nFor example, does the qualifier \"upstream...\", as opposed to \"WHATWG...\" or \"... Living Standard\", imply some change in (what I hope you will forgive me for calling) the politics between WHATWG and W3C? Does \"upstream\" imply an agreed confluence of this \"living\" standard with the version-based W3C standard?"}}
{"actor":{"display_login":"GrahamHannington"}}