- From: Peter Rushforth <notifications@github.com>
- Date: Tue, 06 Dec 2016 09:19:42 -0800
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Tuesday, 6 December 2016 17:34:38 UTC
@oleersoy @WebReflection The email reply system is broken but essentially this was my comment. Y**ou can only subclass HTMLElement right now.** Furthermore, the reason one needs to identify which element you intend to extend is because elements can share script interfaces: **In general, the name of the element being extended cannot be determined simply by looking at what element interface it extends, as many elements share the same interface (such as q and blockquote both sharing HTMLQuoteElement).** So I guess the JavaScript engine has to know which element to create (?) in the DOM given it has multiple potential elements to pick from. Given all that I grant you it is something for programmers to learn/understand. Apologies all of the formatting is lost when you reply by email - won't do that again :-) -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/509#issuecomment-265212097
Received on Tuesday, 6 December 2016 17:34:38 UTC