Try using the shadowRoot
. It still won't do exactly what you're after (getting a list of the `.task' elements, however.
Automatically, the contents of a polymer-element's top-level <template>
is put into the shadow root. That means that the task-dart
can't query for div's in the child <task-row>
s (they're contained within the <task-row>
's shadow root), it can only query it's own shadow root to get the list of task rows.
Timer.run( () {
print("queryAll: " + this.shadowRoot.queryAll("task-row").toString()); // [task-row, task-row, task-row, task-row]
});
The Polymer project has some links to Shadow DOM resources if you need some background reading.