| OLD | NEW |
| 1 /// The Dart HTML library. | 1 /// The Dart HTML library. |
| 2 /// | 2 /// |
| 3 /// For examples, see | 3 /// For examples, see |
| 4 /// [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples) | 4 /// [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples) |
| 5 /// on Github. | 5 /// on Github. |
| 6 library dart.dom.html; | 6 library dart.dom.html; |
| 7 | 7 |
| 8 import 'dart:async'; | 8 import 'dart:async'; |
| 9 import 'dart:collection'; | 9 import 'dart:collection'; |
| 10 import 'dart:_collection-dev' hide Symbol, deprecated; | 10 import 'dart:_collection-dev' hide Symbol, deprecated; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 * Root node for all content in a web page. | 56 * Root node for all content in a web page. |
| 57 */ | 57 */ |
| 58 HtmlDocument get document => JS('HtmlDocument', 'document'); | 58 HtmlDocument get document => JS('HtmlDocument', 'document'); |
| 59 | 59 |
| 60 Element query(String selector) => document.query(selector); | 60 Element query(String selector) => document.query(selector); |
| 61 ElementList queryAll(String selector) => document.queryAll(selector); | 61 ElementList queryAll(String selector) => document.queryAll(selector); |
| 62 | 62 |
| 63 // Workaround for tags like <cite> that lack their own Element subclass -- | 63 // Workaround for tags like <cite> that lack their own Element subclass -- |
| 64 // Dart issue 1990. | 64 // Dart issue 1990. |
| 65 class _HTMLElement extends Element native "HTMLElement" { | 65 class _HTMLElement extends Element native "HTMLElement" { |
| 66 factory _HTMLElement() { throw new UnsupportedError("Not supported"); } |
| 66 } | 67 } |
| 67 | 68 |
| 68 // Support for Send/ReceivePortSync. | 69 // Support for Send/ReceivePortSync. |
| 69 int _getNewIsolateId() { | 70 int _getNewIsolateId() { |
| 70 if (JS('bool', r'!window.$dart$isolate$counter')) { | 71 if (JS('bool', r'!window.$dart$isolate$counter')) { |
| 71 JS('void', r'window.$dart$isolate$counter = 1'); | 72 JS('void', r'window.$dart$isolate$counter = 1'); |
| 72 } | 73 } |
| 73 return JS('int', r'window.$dart$isolate$counter++'); | 74 return JS('int', r'window.$dart$isolate$counter++'); |
| 74 } | 75 } |
| 75 | 76 |
| (...skipping 29389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 29465 _position = nextPosition; | 29466 _position = nextPosition; |
| 29466 return true; | 29467 return true; |
| 29467 } | 29468 } |
| 29468 _current = null; | 29469 _current = null; |
| 29469 _position = _array.length; | 29470 _position = _array.length; |
| 29470 return false; | 29471 return false; |
| 29471 } | 29472 } |
| 29472 | 29473 |
| 29473 T get current => _current; | 29474 T get current => _current; |
| 29474 } | 29475 } |
| OLD | NEW |