Sundered: Eldritch Edition includes the Magnate of the Gong update, adding local co-op multiplayer support, along with new areas and a chaotic battle against the new Magnate of the Gong boss!
Хм…
Комментарии (9)
23:23
Malbona pomo
12:19
Granblue Fantasy Versus
Комментарии (4)
Комментарии (4)
Ну и да, от чего бы там ни было наследование, поведение интерактивных элементов сохранено не будет, если ты не будешь использовать этот элемент. Т.е. кастомный x-summary (по сути, кнопка) не будет реальной кнопкой, даже если наследовать от HTMLButtonElement, если ты не используешь <button is="x-summary"> вместо <x-summary>… Блестяще. А нафига тогда козе баян? 

NotSupportedError: Operation is not supported, сказал мне Firefox (без номера строки). Смотрю я в спеку, а там…

ℹ html.spec.whatwg.org
4.13.2 Requirements for custom element constructors
…
- The element must not gain any attributes or children, as this violates the expectations of consumers who use the createElement or createElementNS methods.
- In general, work should be deferred to connectedCallback as much as possible—especially work involving fetching resources or rendering. However, note that connectedCallback can be called more than once, so any initialization work that is truly one-time will need a guard to prevent it from running twice.
- In general, the constructor should be used to set up initial state and default values, and to set up event listeners and possibly a shadow root.

ℹ html.spec.whatwg.org