| 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 d259672352e84f3ae7a8a4bb8740689e878ca10b..5423a73c15829d6d38a2449ff3179c98d2e48d46 100644
|
| --- a/sdk/lib/html/dartium/html_dartium.dart
|
| +++ b/sdk/lib/html/dartium/html_dartium.dart
|
| @@ -8818,8 +8818,7 @@ class _ChildrenElementList extends ListBase<Element>
|
| }
|
|
|
| void clear() {
|
| - // It is unclear if we want to keep non element nodes?
|
| - _element.text = '';
|
| + _element._clearChildren();
|
| }
|
|
|
| Element removeAt(int index) {
|
| @@ -21407,7 +21406,7 @@ class _ChildNodeListLazy extends ListBase<Node> implements NodeListWrapper {
|
| }
|
|
|
| void clear() {
|
| - _this.text = '';
|
| + _this._clearChildren();
|
| }
|
|
|
| void operator []=(int index, Node value) {
|
| @@ -21529,6 +21528,12 @@ class Node extends EventTarget {
|
| }
|
| }
|
|
|
| + void _clearChildren() {
|
| + while (firstChild != null) {
|
| + _removeChild(firstChild);
|
| + }
|
| + }
|
| +
|
| /**
|
| * Print out a String representation of this Node.
|
| */
|
| @@ -28907,13 +28912,13 @@ class Url extends NativeFieldWrapperClass2 implements UrlUtils {
|
| if ((blob_OR_source_OR_stream is Blob || blob_OR_source_OR_stream == null)) {
|
| return _createObjectURL_1(blob_OR_source_OR_stream);
|
| }
|
| - if ((blob_OR_source_OR_stream is MediaSource || blob_OR_source_OR_stream == null)) {
|
| + if ((blob_OR_source_OR_stream is MediaStream || blob_OR_source_OR_stream == null)) {
|
| return _createObjectURL_2(blob_OR_source_OR_stream);
|
| }
|
| - if ((blob_OR_source_OR_stream is _WebKitMediaSource || blob_OR_source_OR_stream == null)) {
|
| + if ((blob_OR_source_OR_stream is MediaSource || blob_OR_source_OR_stream == null)) {
|
| return _createObjectURL_3(blob_OR_source_OR_stream);
|
| }
|
| - if ((blob_OR_source_OR_stream is MediaStream || blob_OR_source_OR_stream == null)) {
|
| + if ((blob_OR_source_OR_stream is _WebKitMediaSource || blob_OR_source_OR_stream == null)) {
|
| return _createObjectURL_4(blob_OR_source_OR_stream);
|
| }
|
| throw new ArgumentError("Incorrect number or type of arguments");
|
|
|