Index: tools/dom/src/Validators.dart |
diff --git a/tools/dom/src/Validators.dart b/tools/dom/src/Validators.dart |
index 9ba95df7adee8078ffe41d97922720313f166b8a..ac51da13e6b62e1485283415d8d32f8647881883 100644 |
--- a/tools/dom/src/Validators.dart |
+++ b/tools/dom/src/Validators.dart |
@@ -167,11 +167,7 @@ class _ValidatingTreeSanitizer implements NodeTreeSanitizer { |
if (parent == null) { |
node.remove(); |
} else { |
- try { |
- parent._removeChild(node); |
- } catch (e) { |
- node.outerHtml = ''; |
- } |
+ parent._removeChild(node); |
} |
} |