| 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 4cc90adf80c4289040b1e2ac95d471843299d79c..0f15bdc72da26e478431c5f3d4952544ce9a94b9 100644
|
| --- a/sdk/lib/html/dart2js/html_dart2js.dart
|
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart
|
| @@ -13181,6 +13181,12 @@ abstract class Element extends Node implements GlobalEventHandlers, ParentNode,
|
| if (_parseDocument == null) {
|
| _parseDocument = document.implementation.createHtmlDocument('');
|
| _parseRange = _parseDocument.createRange();
|
| +
|
| + // Workaround for Safari bug. Was also previously Chrome bug 229142
|
| + // - URIs are not resolved in new doc.
|
| + var base = _parseDocument.createElement('base');
|
| + base.href = document.baseUri;
|
| + _parseDocument.head.append(base);
|
| }
|
| var contextElement;
|
| if (this is BodyElement) {
|
|
|