Index: tools/dom/src/Html5NodeValidator.dart |
diff --git a/tools/dom/src/Html5NodeValidator.dart b/tools/dom/src/Html5NodeValidator.dart |
index c935d07ee2cb611987396e5a00abe9783f6884fb..a5e0e57c42f28da3e2052ac31d5864536e63c567 100644 |
--- a/tools/dom/src/Html5NodeValidator.dart |
+++ b/tools/dom/src/Html5NodeValidator.dart |
@@ -423,11 +423,11 @@ class _Html5NodeValidator implements NodeValidator { |
} |
bool allowsElement(Element element) { |
- return _allowedElements.contains(element._safeTagName); |
+ return _allowedElements.contains(element.tagName); |
} |
bool allowsAttribute(Element element, String attributeName, String value) { |
- var tagName = element._safeTagName; |
+ var tagName = element.tagName; |
var validator = _attributeValidators['$tagName::$attributeName']; |
if (validator == null) { |
validator = _attributeValidators['*::$attributeName']; |