| Index: sdk/lib/html/dartium/html_dartium.dart
|
| diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
|
| index 0027a92c2e9d49662b719a33931e0dd8318353e4..2b1e90dc59f5a75ba12c96bd6500969fe6d604e0 100644
|
| --- a/sdk/lib/html/dartium/html_dartium.dart
|
| +++ b/sdk/lib/html/dartium/html_dartium.dart
|
| @@ -7688,6 +7688,7 @@ class Document extends Node
|
| * save typing a few characters.
|
| *
|
| * [selectors] should be a string using CSS selector syntax.
|
| + *
|
| * var element1 = document.querySelector('.className');
|
| * var element2 = document.querySelector('#id');
|
| *
|
| @@ -8034,6 +8035,7 @@ class Document extends Node
|
| * save typing a few characters.
|
| *
|
| * [selectors] should be a string using CSS selector syntax.
|
| + *
|
| * var items = document.querySelectorAll('.itemClassName');
|
| *
|
| * For details about CSS selector syntax, see the
|
| @@ -8117,6 +8119,17 @@ class DocumentFragment extends Node implements ParentNode {
|
| children.addAll(copy);
|
| }
|
|
|
| + /**
|
| + * Finds all descendant elements of this document fragment that match the
|
| + * specified group of selectors.
|
| + *
|
| + * [selectors] should be a string using CSS selector syntax.
|
| + *
|
| + * var items = document.querySelectorAll('.itemClassName');
|
| + *
|
| + * For details about CSS selector syntax, see the
|
| + * [CSS selector specification](http://www.w3.org/TR/css3-selectors/).
|
| + */
|
| ElementList querySelectorAll(String selectors) =>
|
| new _FrozenElementList._wrap(_querySelectorAll(selectors));
|
|
|
| @@ -8181,6 +8194,18 @@ class DocumentFragment extends Node implements ParentNode {
|
| // To suppress missing implicit constructor warnings.
|
| factory DocumentFragment._() { throw new UnsupportedError("Not supported"); }
|
|
|
| + /**
|
| + * 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/).
|
| + */
|
| @DomName('DocumentFragment.querySelector')
|
| @DocsEditable()
|
| Element querySelector(String selectors) native "DocumentFragment_querySelector_Callback";
|
| @@ -9847,6 +9872,9 @@ abstract class Element extends Node implements ParentNode, ChildNode {
|
| * [selectors] should be a string using CSS selector syntax.
|
| *
|
| * var items = element.querySelectorAll('.itemClassName');
|
| + *
|
| + * For details about CSS selector syntax, see the
|
| + * [CSS selector specification](http://www.w3.org/TR/css3-selectors/).
|
| */
|
| @DomName('Element.querySelectorAll')
|
| ElementList querySelectorAll(String selectors) =>
|
| @@ -11243,9 +11271,8 @@ abstract class Element extends Node implements ParentNode, ChildNode {
|
| * // 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/).
|
| */
|
| @DomName('Element.querySelector')
|
| @DocsEditable()
|
| @@ -35780,7 +35807,41 @@ Element query(String relativeSelectors) => document.query(relativeSelectors);
|
| @Experimental()
|
| ElementList queryAll(String relativeSelectors) => document.queryAll(relativeSelectors);
|
|
|
| +/**
|
| + * 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/).
|
| + */
|
| Element querySelector(String selectors) => document.querySelector(selectors);
|
| +
|
| +/**
|
| + * Finds all descendant elements of this document that match the specified
|
| + * group of selectors.
|
| + *
|
| + * Unless your webpage contains multiple documents, the top-level
|
| + * [querySelectorAll]
|
| + * 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 items = document.querySelectorAll('.itemClassName');
|
| + *
|
| + * For details about CSS selector syntax, see the
|
| + * [CSS selector specification](http://www.w3.org/TR/css3-selectors/).
|
| + */
|
| ElementList querySelectorAll(String selectors) => document.querySelectorAll(selectors);
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
|
|