feat(dart/transform): Add stub implementations to Html5LibAdapter

Stub out some methods used in the `CompilerPipeline`.
This commit is contained in:
Tim Blasi 2015-04-09 17:36:25 -07:00
parent f375dbd013
commit cac74c73e1
1 changed files with 11 additions and 12 deletions

View File

@ -9,6 +9,13 @@ class Html5LibDomAdapter implements DomAdapter {
setRootDomAdapter(new Html5LibDomAdapter()); setRootDomAdapter(new Html5LibDomAdapter());
} }
@override
final attrToPropMap = const {
'innerHtml': 'innerHtml',
'readonly': 'readOnly',
'tabindex': 'tabIndex',
};
Element parse(String templateHtml) => parser.parse(templateHtml).firstChild; Element parse(String templateHtml) => parser.parse(templateHtml).firstChild;
query(selector) { query(selector) {
throw 'not implemented'; throw 'not implemented';
@ -69,18 +76,12 @@ class Html5LibDomAdapter implements DomAdapter {
clearNodes(el) { clearNodes(el) {
throw 'not implemented'; throw 'not implemented';
} }
appendChild(el, node) { appendChild(el, node) => null;
throw 'not implemented';
}
removeChild(el, node) { removeChild(el, node) {
throw 'not implemented'; throw 'not implemented';
} }
remove(el) { remove(el) => null;
throw 'not implemented'; insertBefore(el, node) => null;
}
insertBefore(el, node) {
throw 'not implemented';
}
insertAllBefore(el, nodes) { insertAllBefore(el, nodes) {
throw 'not implemented'; throw 'not implemented';
} }
@ -176,9 +177,7 @@ class Html5LibDomAdapter implements DomAdapter {
getAttribute(element, String attribute) { getAttribute(element, String attribute) {
throw 'not implemented'; throw 'not implemented';
} }
setAttribute(element, String name, String value) { setAttribute(element, String name, String value) => null;
throw 'not implemented';
}
removeAttribute(element, String attribute) { removeAttribute(element, String attribute) {
throw 'not implemented'; throw 'not implemented';
} }