Index: pkg/polymer/lib/src/build/linter.dart |
diff --git a/pkg/polymer/lib/src/build/linter.dart b/pkg/polymer/lib/src/build/linter.dart |
index b553ff0a16d5d44a3e594f062c3555555a83535c..ea7ac6f95022027cad96434774fdff845d941de0 100644 |
--- a/pkg/polymer/lib/src/build/linter.dart |
+++ b/pkg/polymer/lib/src/build/linter.dart |
@@ -8,10 +8,7 @@ |
*/ |
library polymer.src.build.linter; |
-import 'dart:io'; |
import 'dart:async'; |
-import 'dart:mirrors'; |
-import 'dart:convert' show JSON; |
import 'package:barback/barback.dart'; |
import 'package:html5lib/dom.dart'; |
@@ -79,7 +76,7 @@ class Linter extends Transformer with PolymerTransformer { |
Document document, AssetId sourceId, Transform transform) { |
var importIds = []; |
var logger = transform.logger; |
- for (var tag in document.queryAll('link')) { |
+ for (var tag in document.querySelectorAll('link')) { |
if (tag.attributes['rel'] != 'import') continue; |
var href = tag.attributes['href']; |
var span = tag.sourceSpan; |
@@ -99,7 +96,7 @@ class Linter extends Transformer with PolymerTransformer { |
void _addElements(Document document, TransformLogger logger, |
Map<String, _ElementSummary> elements) { |
- for (var tag in document.queryAll('polymer-element')) { |
+ for (var tag in document.querySelectorAll('polymer-element')) { |
var name = tag.attributes['name']; |
if (name == null) continue; |
var extendsTag = tag.attributes['extends']; |