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

Unified Diff: sdk/lib/html/dartium/html_dartium.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 | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tools/dom/scripts/htmlrenamer.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index da5532b1cdf585665d66eed86b7483be98234c17..f7566bc1f4d0e30afe37bc10de2e6b668e5f6857 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -10103,6 +10103,11 @@ abstract class Element extends Node implements ParentNode, ChildNode {
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) {
@@ -19126,6 +19131,10 @@ class Node extends EventTarget {
@DocsEditable()
static const int TEXT_NODE = 3;
+ @DomName('Node.baseURI')
+ @DocsEditable()
+ String get _baseUri native "Node_baseURI_Getter";
+
@DomName('Node.childNodes')
@DocsEditable()
@deprecated
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tools/dom/scripts/htmlrenamer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698