I would like to create a custom Polymer element 'ab-btn' that extends the element 'a'. It should be used as:
<ab-btn href="http://www.gooogle.com">Google</ab-btn>
The declaration of the html element of the XML element looks like (the script is listed at the end because I want to declare more elements in one file):
<polymer-element name="ab-btn" extends="a">
<template>
<content></content>
</template>
</polymer-element>
<script type="application/dart" src="ab-elements.dart"></script>
and dart script for the element:
import 'package:polymer/polymer.dart';
import 'dart:svg';
@CustomTag('ab-btn')
class AbBtn extends AElement {
AbBtn.created() : super.created();
var inputMethodContext;
}
When I try to use this element, I always get an error:
Exception: InvalidCharacterError: Internal Dartium Exception
undefined (undefined:0:0)
What is the correct way to expand the 'a' elements?
source
share