| Index: sdk/lib/html/dart2js/html_dart2js.dart
|
| diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
|
| index 2b7006bd5a81f4be99f61e711e7acc6f9625cd41..e780d2e8a365a6510fb9196c8aaea17f44d9507b 100644
|
| --- a/sdk/lib/html/dart2js/html_dart2js.dart
|
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart
|
| @@ -13273,7 +13273,7 @@ abstract class Element extends Node implements GlobalEventHandlers, ParentNode,
|
| element.lastChild !== childNodes[childNodes.length -1]) {
|
| return true;
|
| }
|
| - if (element.children) {
|
| + if (element.children) { // On Safari, children can apparently be null.
|
| if (!((element.children instanceof HTMLCollection) ||
|
| (element.children instanceof NodeList))) {
|
| return true;
|
| @@ -40822,11 +40822,7 @@ class _ValidatingTreeSanitizer implements NodeTreeSanitizer {
|
| if (parent == null) {
|
| node.remove();
|
| } else {
|
| - try {
|
| - parent._removeChild(node);
|
| - } catch (e) {
|
| - node.outerHtml = '';
|
| - }
|
| + parent._removeChild(node);
|
| }
|
| }
|
|
|
|
|