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

Unified Diff: tools/dom/docs/docs.json

Issue 27223003: Deprecate query and queryAll, also add back querySelector and querySelectorAll. (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
Index: tools/dom/docs/docs.json
diff --git a/tools/dom/docs/docs.json b/tools/dom/docs/docs.json
index a68c856197e0eeb94eb1382799d822d574273003..ff4ba158013b1358d2927607cc219b30a8897b81 100644
--- a/tools/dom/docs/docs.json
+++ b/tools/dom/docs/docs.json
@@ -129,20 +129,21 @@
"members": {
"querySelector": [
"/**",
- " * Finds the first descendant element of this document that matches the",
- " * specified group of selectors.",
- " *",
- " * Unless your webpage contains multiple documents, the top-level query",
- " * method behaves the same as this method, so you should use it instead to",
- " * save typing a few characters.",
- " *",
- " * [selectors] should be a string using CSS selector syntax.",
- " * var element1 = document.query('.className');",
- " * var element2 = document.query('#id');",
- " *",
- " * For details about CSS selector syntax, see the",
- " * [CSS selector specification](http://www.w3.org/TR/css3-selectors/).",
- " */"
+ " * Finds the first descendant element of this document that matches the",
+ " * specified group of selectors.",
+ " *",
+ " * Unless your webpage contains multiple documents, the top-level",
+ " * [querySelector]",
+ " * method behaves the same as this method, so you should use it instead to",
+ " * save typing a few characters.",
+ " *",
+ " * [selectors] should be a string using CSS selector syntax.",
+ " * var element1 = document.querySelector('.className');",
+ " * var element2 = document.querySelector('#id');",
+ " *",
+ " * For details about CSS selector syntax, see the",
+ " * [CSS selector specification](http://www.w3.org/TR/css3-selectors/).",
+ " */"
]
}
},
@@ -155,22 +156,22 @@
"members": {
"querySelector": [
"/**",
- " * Finds the first descendant element of this element that matches the",
- " * specified group of selectors.",
- " *",
- " * [selectors] should be a string using CSS selector syntax.",
- " *",
- " * // Gets the first descendant with the class 'classname'",
- " * var element = element.query('.className');",
- " * // Gets the element with id 'id'",
- " * var element = element.query('#id');",
- " * // Gets the first descendant [ImageElement]",
- " * var img = element.query('img');",
- " *",
- " * See also:",
- " *",
- " * * [CSS Selectors](http://docs.webplatform.org/wiki/css/selectors)",
- " */"
+ " * Finds the first descendant element of this element that matches the",
+ " * specified group of selectors.",
+ " *",
+ " * [selectors] should be a string using CSS selector syntax.",
+ " *",
+ " * // Gets the first descendant with the class 'classname'",
+ " * var element = element.querySelector('.className');",
+ " * // Gets the element with id 'id'",
+ " * var element = element.querySelector('#id');",
+ " * // Gets the first descendant [ImageElement]",
+ " * var img = element.querySelector('img');",
+ " *",
+ " * See also:",
+ " *",
+ " * * [CSS Selectors](http://docs.webplatform.org/wiki/css/selectors)",
+ " */"
]
}
},

Powered by Google App Engine
This is Rietveld 408576698