OLD | NEW |
1 { | 1 { |
2 "dart.dom.html": { | 2 "dart.dom.html": { |
3 "CanvasGradient": { | 3 "CanvasGradient": { |
4 "comment": [ | 4 "comment": [ |
5 "/**", | 5 "/**", |
6 " * An opaque canvas object representing a gradient.", | 6 " * An opaque canvas object representing a gradient.", |
7 " *", | 7 " *", |
8 " * Created by calling [createLinearGradient] or [createRadialGradient]
on a", | 8 " * Created by calling [createLinearGradient] or [createRadialGradient]
on a", |
9 " * [CanvasRenderingContext2D] object.", | 9 " * [CanvasRenderingContext2D] object.", |
10 " *", | 10 " *", |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 " * Each web page loaded in the browser has its own [Document] object, w
hich is", | 122 " * Each web page loaded in the browser has its own [Document] object, w
hich is", |
123 " * typically an [HtmlDocument].", | 123 " * typically an [HtmlDocument].", |
124 " *", | 124 " *", |
125 " * If you aren't comfortable with DOM concepts, see the Dart tutorial", | 125 " * If you aren't comfortable with DOM concepts, see the Dart tutorial", |
126 " * [Target 2: Connect Dart & HTML](http://www.dartlang.org/docs/tutoria
ls/connect-dart-html/).", | 126 " * [Target 2: Connect Dart & HTML](http://www.dartlang.org/docs/tutoria
ls/connect-dart-html/).", |
127 " */" | 127 " */" |
128 ], | 128 ], |
129 "members": { | 129 "members": { |
130 "querySelector": [ | 130 "querySelector": [ |
131 "/**", | 131 "/**", |
132 " * Finds the first descendant element of this document that matches t
he", | 132 " * Finds the first descendant element of this document that matches
the", |
133 " * specified group of selectors.", | 133 " * specified group of selectors.", |
134 " *", | 134 " *", |
135 " * Unless your webpage contains multiple documents, the top-level que
ry", | 135 " * Unless your webpage contains multiple documents, the top-level", |
136 " * method behaves the same as this method, so you should use it inste
ad to", | 136 " * [querySelector]", |
137 " * save typing a few characters.", | 137 " * method behaves the same as this method, so you should use it ins
tead to", |
138 " *", | 138 " * save typing a few characters.", |
139 " * [selectors] should be a string using CSS selector syntax.", | 139 " *", |
140 " * var element1 = document.query('.className');", | 140 " * [selectors] should be a string using CSS selector syntax.", |
141 " * var element2 = document.query('#id');", | 141 " * var element1 = document.querySelector('.className');", |
142 " *", | 142 " * var element2 = document.querySelector('#id');", |
143 " * For details about CSS selector syntax, see the", | 143 " *", |
144 " * [CSS selector specification](http://www.w3.org/TR/css3-selectors/)
.", | 144 " * For details about CSS selector syntax, see the", |
145 " */" | 145 " * [CSS selector specification](http://www.w3.org/TR/css3-selectors
/).", |
| 146 " */" |
146 ] | 147 ] |
147 } | 148 } |
148 }, | 149 }, |
149 "Element": { | 150 "Element": { |
150 "comment": [ | 151 "comment": [ |
151 "/**", | 152 "/**", |
152 " * An abstract class, which all HTML elements extend.", | 153 " * An abstract class, which all HTML elements extend.", |
153 " */" | 154 " */" |
154 ], | 155 ], |
155 "members": { | 156 "members": { |
156 "querySelector": [ | 157 "querySelector": [ |
157 "/**", | 158 "/**", |
158 " * Finds the first descendant element of this element that matches th
e", | 159 " * Finds the first descendant element of this element that matches
the", |
159 " * specified group of selectors.", | 160 " * specified group of selectors.", |
160 " *", | 161 " *", |
161 " * [selectors] should be a string using CSS selector syntax.", | 162 " * [selectors] should be a string using CSS selector syntax.", |
162 " *", | 163 " *", |
163 " * // Gets the first descendant with the class 'classname'", | 164 " * // Gets the first descendant with the class 'classname'", |
164 " * var element = element.query('.className');", | 165 " * var element = element.querySelector('.className');", |
165 " * // Gets the element with id 'id'", | 166 " * // Gets the element with id 'id'", |
166 " * var element = element.query('#id');", | 167 " * var element = element.querySelector('#id');", |
167 " * // Gets the first descendant [ImageElement]", | 168 " * // Gets the first descendant [ImageElement]", |
168 " * var img = element.query('img');", | 169 " * var img = element.querySelector('img');", |
169 " *", | 170 " *", |
170 " * See also:", | 171 " * See also:", |
171 " *", | 172 " *", |
172 " * * [CSS Selectors](http://docs.webplatform.org/wiki/css/selectors)"
, | 173 " * * [CSS Selectors](http://docs.webplatform.org/wiki/css/selectors
)", |
173 " */" | 174 " */" |
174 ] | 175 ] |
175 } | 176 } |
176 }, | 177 }, |
177 "HTMLAreaElement": { | 178 "HTMLAreaElement": { |
178 "comment": [ | 179 "comment": [ |
179 "/**", | 180 "/**", |
180 " * DOM Area Element, which links regions of an image map with a hyperli
nk.", | 181 " * DOM Area Element, which links regions of an image map with a hyperli
nk.", |
181 " *", | 182 " *", |
182 " * The element can also define an uninteractive region of the map.", | 183 " * The element can also define an uninteractive region of the map.", |
183 " *", | 184 " *", |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 " *", | 543 " *", |
543 " * [oldVersion] should match the database's current [version] exact
ly.", | 544 " * [oldVersion] should match the database's current [version] exact
ly.", |
544 " *", | 545 " *", |
545 " * * [Database.changeVersion](http://www.w3.org/TR/webdatabase/#dom
-database-changeversion) from W3C.", | 546 " * * [Database.changeVersion](http://www.w3.org/TR/webdatabase/#dom
-database-changeversion) from W3C.", |
546 " */" | 547 " */" |
547 ] | 548 ] |
548 } | 549 } |
549 } | 550 } |
550 } | 551 } |
551 } | 552 } |
OLD | NEW |