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

Unified Diff: pkg/mdv/lib/src/input_bindings.dart

Issue 27602002: Renaming Node.document back to Node.ownerDocument (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:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/mdv/lib/src/template_iterator.dart » ('j') | sdk/lib/html/dartium/html_dartium.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/mdv/lib/src/input_bindings.dart
diff --git a/pkg/mdv/lib/src/input_bindings.dart b/pkg/mdv/lib/src/input_bindings.dart
index cdd89b53c17978f7f83bb4cc8a86b2e6c87edfc2..b5467aa55e5342646ab64f71f19b408da192efc7 100644
--- a/pkg/mdv/lib/src/input_bindings.dart
+++ b/pkg/mdv/lib/src/input_bindings.dart
@@ -114,7 +114,7 @@ class _CheckedBinding extends _InputBinding {
el.name == element.name;
});
} else {
- var radios = element.document.queryAll(
+ var radios = element.ownerDocument.queryAll(
'input[type="radio"][name="${element.name}"]');
return radios.where((el) => el != element && el.form == null);
}
@@ -123,7 +123,7 @@ class _CheckedBinding extends _InputBinding {
// TODO(jmesserly): polyfill document.contains API instead of doing it here
static bool _isNodeInDocument(Node node) {
// On non-IE this works:
- // return node.document.contains(node);
+ // return node.ownerDocument.contains(node);
var document = node.document;
if (node == document || node.parentNode == document) return true;
return document.documentElement.contains(node);
« no previous file with comments | « no previous file | pkg/mdv/lib/src/template_iterator.dart » ('j') | sdk/lib/html/dartium/html_dartium.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698