html icon indicating copy to clipboard operation
html copied to clipboard

api documentation for registerElement contains an error

Open TastyCatFood opened this issue 9 years ago • 1 comments

https://api.dartlang.org/1.14.1/dart-html/HtmlDocument/registerElement.html It does not mention extendsTag option must be given to the registerElement method for extending the InputElement.

Without the option, dartium tells you you must extend HtmlElement.

http://stackoverflow.com/questions/22893948/extending-darthtml-classes-in-dart/34895487#34895487

TastyCatFood avatar Feb 04 '16 08:02 TastyCatFood

The example code has additional issues

class BarElement extends InputElement{
   //void created() {
   // should be
   BarElement.created() : super.created() {

     print('BarElement created!');
   }
}

zoechi avatar Feb 04 '16 12:02 zoechi