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

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

Issue 65333002: Update selector docs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/src/shared_html.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/docs/docs.json
diff --git a/tools/dom/docs/docs.json b/tools/dom/docs/docs.json
index ba4e5fcbbf6400c18e2075bceeeac1a4ea00629c..679069e38592efcb29bf0f5ea6f8ebc721983498 100644
--- a/tools/dom/docs/docs.json
+++ b/tools/dom/docs/docs.json
@@ -416,6 +416,7 @@
" * save typing a few characters.",
" *",
" * [selectors] should be a string using CSS selector syntax.",
+ " *",
" * var element1 = document.querySelector('.className');",
" * var element2 = document.querySelector('#id');",
" *",
@@ -465,6 +466,24 @@
]
}
},
+ "DocumentFragment": {
+ "members": {
+ "querySelector": [
+ "/**",
+ " * Finds the first descendant element of this document fragment that matches",
+ " * the specified group of selectors.",
+ " *",
+ " * [selectors] should be a string using CSS selector syntax.",
+ " *",
+ " * var element1 = fragment.querySelector('.className');",
+ " * var element2 = fragment.querySelector('#id');",
+ " *",
+ " * For details about CSS selector syntax, see the",
+ " * [CSS selector specification](http://www.w3.org/TR/css3-selectors/).",
+ " */"
+ ]
+ }
+ },
"Element": {
"comment": [
"/**",
@@ -1166,9 +1185,8 @@
" * // Gets the first descendant [ImageElement]",
" * var img = element.querySelector('img');",
" *",
- " * See also:",
- " *",
- " * * [CSS Selectors](http://docs.webplatform.org/wiki/css/selectors)",
+ " * For details about CSS selector syntax, see the",
+ " * [CSS selector specification](http://www.w3.org/TR/css3-selectors/).",
" */"
],
"resetEvent": [
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/src/shared_html.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698