| Index: tools/dom/src/Validators.dart
|
| diff --git a/tools/dom/src/Validators.dart b/tools/dom/src/Validators.dart
|
| index 430658edc35992da95c04503832b9ca5cf74266a..5154a9d4e4e05c99d86ae4b4cf44f32c7b096de7 100644
|
| --- a/tools/dom/src/Validators.dart
|
| +++ b/tools/dom/src/Validators.dart
|
| @@ -165,6 +165,8 @@ class _ValidatingTreeSanitizer implements NodeTreeSanitizer {
|
| Element element = node;
|
| var attrs = element.attributes;
|
| if (!validator.allowsElement(element)) {
|
| + window.console.warn(
|
| + 'Removing disallowed element <${element.tagName}>');
|
| element.remove();
|
| break;
|
| }
|
| @@ -172,6 +174,8 @@ class _ValidatingTreeSanitizer implements NodeTreeSanitizer {
|
| var isAttr = attrs['is'];
|
| if (isAttr != null) {
|
| if (!validator.allowsAttribute(element, 'is', isAttr)) {
|
| + window.console.warn('Removing disallowed type extension '
|
| + '<${element.tagName} is="$isAttr">');
|
| element.remove();
|
| break;
|
| }
|
| @@ -184,6 +188,8 @@ class _ValidatingTreeSanitizer implements NodeTreeSanitizer {
|
| var name = keys[i];
|
| if (!validator.allowsAttribute(element, name.toLowerCase(),
|
| attrs[name])) {
|
| + window.console.warn('Removing disallowed attribute '
|
| + '<${element.tagName} $name="${attrs[name]}">');
|
| attrs.remove(name);
|
| }
|
| }
|
|
|