я расширил HTML InputElement
как следующий, и пытался сделать его с другим пользовательским элементомРасширения входного элемента
import 'dart:html';
void main() {
document.registerElement('x-editor', EditorBase,extendsTag:'input');
document.registerElement('x-item', Item);
}
class EditorBase extends InputElement{
EditorBase.created():super.created();
}
class Item extends HtmlElement{
Item.created():super.created(){
this.createShadowRoot();
String template = '<input is="x-editor"></input>'
'<input is="x-editor"></input>';
this.shadowRoot.appendHtml(template);
}
}
в моем HTML я быть_наст
<x-item></x-item>
, когда я запускаю хром пишет 2 Removing disallowed type extension <INPUT is="x-editor">