Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(565)

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 23903020: Fix for CSS URIs not parsing correctly with innerHTML (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 129d2d928944bbf2b0a3c4d0ad407a6a37f5bfb1..b1fdab9d5c6b52008c8529e4bb2c88958f480150 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -9688,6 +9688,11 @@ abstract class Element extends Node implements ParentNode, ChildNode native "Ele
if (_parseDocument == null) {
_parseDocument = document.implementation.createHtmlDocument('');
_parseRange = _parseDocument.createRange();
+
+ // Workaround for Chrome bug 229142- URIs are not resolved in new doc.
+ var base = _parseDocument.$dom_createElement('base');
+ base.href = document._baseUri;
+ _parseDocument.head.append(base);
}
var contextElement;
if (this is BodyElement) {
@@ -17785,6 +17790,11 @@ class Node extends EventTarget native "Node" {
@DocsEditable()
static const int TEXT_NODE = 3;
+ @JSName('baseURI')
+ @DomName('Node.baseURI')
+ @DocsEditable()
+ final String _baseUri;
+
@DomName('Node.childNodes')
@DocsEditable()
@deprecated
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698