Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Unified Diff: pkg/polymer/lib/src/build/linter.dart

Issue 178303009: [html5lib] api updates: localName (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/third_party/html5lib/lib/dom.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ea7ac6f95022027cad96434774fdff845d941de0..3a79758d7bf9c9b97a71fa357c7b1c61be77672a 100644
--- a/pkg/polymer/lib/src/build/linter.dart
+++ b/pkg/polymer/lib/src/build/linter.dart
@@ -161,7 +161,7 @@ class _LinterVisitor extends TreeVisitor {
}
void visitElement(Element node) {
- switch (node.tagName) {
+ switch (node.localName) {
case 'link': _validateLinkElement(node); break;
case 'element': _validateElementElement(node); break;
case 'polymer-element': _validatePolymerElement(node); break;
@@ -327,7 +327,7 @@ class _LinterVisitor extends TreeVisitor {
});
// Validate uses of custom-tags
- var nodeTag = node.tagName;
+ var nodeTag = node.localName;
var hasIsAttribute;
var customTagName;
if (_isCustomTag(nodeTag)) {
« no previous file with comments | « no previous file | pkg/third_party/html5lib/lib/dom.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698