html
html copied to clipboard
api documentation for registerElement contains an error
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
The example code has additional issues
class BarElement extends InputElement{
//void created() {
// should be
BarElement.created() : super.created() {
print('BarElement created!');
}
}