Index: tools/dom/src/Html5NodeValidator.dart |
diff --git a/tools/dom/src/Html5NodeValidator.dart b/tools/dom/src/Html5NodeValidator.dart |
index a5e0e57c42f28da3e2052ac31d5864536e63c567..c935d07ee2cb611987396e5a00abe9783f6884fb 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.tagName); |
+ return _allowedElements.contains(element._safeTagName); |
} |
bool allowsAttribute(Element element, String attributeName, String value) { |
- var tagName = element.tagName; |
+ var tagName = element._safeTagName; |
var validator = _attributeValidators['$tagName::$attributeName']; |
if (validator == null) { |
validator = _attributeValidators['*::$attributeName']; |