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

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

Issue 26557004: Fix for events not firing on sanitized elements (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 e519022dab9ba2eb9fe3453b3e995683a7f714b6..211b1e9bc59a7fe113e5aabb26db2f7f46aaaee0 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -9280,7 +9280,7 @@ abstract class Element extends Node implements ParentNode, ChildNode native "Ele
ElementList querySelectorAll(String selectors) =>
new _FrozenElementList._wrap(_querySelectorAll(selectors));
- /**
+ /**
* Alias for [querySelector]. Note this function is deprecated because its
* semantics will be changing in the future.
*/
@@ -9289,7 +9289,7 @@ abstract class Element extends Node implements ParentNode, ChildNode native "Ele
@Experimental()
Element query(String relativeSelectors) => querySelector(relativeSelectors);
- /**
+ /**
* Alias for [querySelectorAll]. Note this function is deprecated because its
* semantics will be changing in the future.
*/
@@ -10012,6 +10012,9 @@ abstract class Element extends Node implements ParentNode, ChildNode native "Ele
}
treeSanitizer.sanitizeTree(fragment);
+ // Copy the fragment over to the main document (fix for 14184)
+ document.adoptNode(fragment);
+
return fragment;
}
« 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