{"action":"opened","issue":{"url":"https://api.github.com/repos/hayatoito/test/issues/374","labels_url":"https://api.github.com/repos/hayatoito/test/issues/374/labels{/name}","comments_url":"https://api.github.com/repos/hayatoito/test/issues/374/comments","events_url":"https://api.github.com/repos/hayatoito/test/issues/374/events","html_url":"https://github.com/hayatoito/test/issues/374","id":93211213,"number":374,"title":"[Custom]: type extensions should be available as custom tags, not only through <baseTag is=\"...\"> (bugzilla: 27976)","user":{"login":"hayatoito","id":160288,"avatar_url":"https://avatars.githubusercontent.com/u/160288?v=3","gravatar_id":"","url":"https://api.github.com/users/hayatoito","html_url":"https://github.com/hayatoito","followers_url":"https://api.github.com/users/hayatoito/followers","following_url":"https://api.github.com/users/hayatoito/following{/other_user}","gists_url":"https://api.github.com/users/hayatoito/gists{/gist_id}","starred_url":"https://api.github.com/users/hayatoito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hayatoito/subscriptions","organizations_url":"https://api.github.com/users/hayatoito/orgs","repos_url":"https://api.github.com/users/hayatoito/repos","events_url":"https://api.github.com/users/hayatoito/events{/privacy}","received_events_url":"https://api.github.com/users/hayatoito/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hayatoito/test/labels/custom-elements","name":"custom-elements","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-06T07:31:05Z","updated_at":"2015-07-06T07:31:05Z","closed_at":null,"body":"Title: [Custom]: type extensions should be available as custom tags, not only through <baseTag is=\"...\"> (bugzilla: 27976)\n\nMigrated from: https://www.w3.org/Bugs/Public/show_bug.cgi?id=27976\n\n----\ncomment: 0\ncomment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=27976#c0\n*Randy Harmon* wrote on 2015-02-07 18:52:01 +0000.\n\nIt seems to me that it's unnecessarily limiting to require that users specify the base tag type and also the extension tag.  It seems to prevent the direct use of semantic tags which happen to use a non-generic html tag prototype.\n\nThis might be simply a clarity issue, where in 11.2 Type Extension Example, you could specify that \\<button is=tequila-button\\> is equivalent to \\<tequila-button\\>.\n\n----\n\ncomment: 1\ncomment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=27976#c1\n*Boris Zbarsky* wrote on 2015-02-07 21:44:19 +0000.\n\nIf you want the HTML spec (and hence browsers) to think it's a button, you can't call it \\<tequila-button\\>, because both the HTML spec and browser implementations are in terms of the localName of the element.  So are browser extensions, various web libraries, and so forth.\n\nThis has been discussed at quite some length several times already.  Doing this in a green-field design might have made sense, but at this point we're talking about boiling the ocean.\n\n----\n\ncomment: 2\ncomment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=27976#c2\n*Randy Harmon* wrote on 2015-02-08 21:25:05 +0000.\n\nOK.  Thanks for the info.\n\nSeems worth an aside in the doc, just to clarify that for current compatibility reasons, a native element cannot be considered a native element by the browser if it is extended via is=\"\".\n\n----\n\ncomment: 3\ncomment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=27976#c3\n*Randy Harmon* wrote on 2015-02-08 21:26:08 +0000.\n\ns/cannot/can only/\n\n----\n\ncomment: 4\ncomment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=27976#c4\n*markg* wrote on 2015-02-19 03:48:52 +0000.\n\nI have not seen this stated very explicitly anywhere. How about a note in the spec at someplace like this location:\n\nhttp://w3c.github.io/webcomponents/spec/custom/#custom-tag-example\n\nIt might make it clear like this:\n\n\"If you want a custom element to extend a native element like \\<button\\>, then you cannot use a custom tag name for it. Instead, you must use the native element tagname with the @is-(this-is-inserted-to-avoid-notification-in-migration) attribute, something like \\<button is=\"my-button\">. It will not work to use a custom tag such as \\<my-button\\> to extend \\<button\\> (HTMLButtonElement prototype).\n\n\"Saying it another way, custom tagnames can only be used when you are not extending a native element (other than the default HTMLElement).\""}}