| Index: example/todomvc/test/todomvc_markdone_test.html
|
| diff --git a/example/todomvc/test/todomvc_markdone_test.html b/example/todomvc/test/todomvc_markdone_test.html
|
| index c24b79d655f61fd35bb0930a021aee4e5bde653e..e1d564cf382e7d86b7d083cc71bc579f7f5387c0 100644
|
| --- a/example/todomvc/test/todomvc_markdone_test.html
|
| +++ b/example/todomvc/test/todomvc_markdone_test.html
|
| @@ -29,8 +29,8 @@ import '../web/model.dart';
|
|
|
| Node findWithText(Node node, String text) {
|
| if (node.text == text) return node;
|
| - if (node is Element && node.shadowRoot != null) {
|
| - var r = findWithText(node.shadowRoot, text);
|
| + if (node is Element && (node as Element).shadowRoot != null) {
|
| + var r = findWithText((node as Element).shadowRoot, text);
|
| if (r != null) return r;
|
| }
|
| for (var n in node.nodes) {
|
| @@ -42,7 +42,7 @@ Node findWithText(Node node, String text) {
|
|
|
| Node findShadowHost(Node node, ShadowRoot root) {
|
| if (node is Element) {
|
| - var shadowRoot = node.shadowRoot;
|
| + var shadowRoot = (node as Element).shadowRoot;
|
| if (shadowRoot == root) return node;
|
| if (shadowRoot != null) {
|
| var r = findShadowHost(shadowRoot, root);
|
|
|