Мой вопрос касается расширения HTMLElement для настраиваемого элемента.
class Foo extends HTMLElement { ... }
class Bar extends Foo { ... }
class FooBar extends Bar { ... }
Каждый из них вызывает super () в конструкторе.
Когда я определяю настраиваемый элемент с помощью Bar, я не получаю никаких ошибок
customElements.define( 'custom-tag', Bar );
or
customElements.define( 'custom-tag', class Bar extends Foo { ... } );
Я пытаюсь определить настраиваемый элемент с помощью класса FooBar.
customElements.define( 'other-custom-tag', FooBar );
or
customElements.define( 'other-custom-tag', class FooBar extends Bar { ... } );
Но я получаю
Uncaught TypeError: Failed to execute 'define' on 'CustomElementRegistry':
The provided value cannot be converted to a sequence.
Через Документы Mozilla
https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define
TypeError The referenced constructor is not a constructor.
Я не смог найти ничего относящегося к этой проблеме ...
customElements.define
? Невозможно преобразовать в последовательность или это не конструктор? - person Jacob   schedule 27.09.2018