| 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 f2f456d1c17f79134b75c6dc44e91d46733d083b..58cf3f25783a1b9426de3cd3cc9b9dfed7cbbb58 100644
|
| --- a/sdk/lib/html/dartium/html_dartium.dart
|
| +++ b/sdk/lib/html/dartium/html_dartium.dart
|
| @@ -2269,6 +2269,11 @@ class ContentElement extends _Element_Merged {
|
| ///@docsEditable true
|
| factory ContentElement() => document.$dom_createElement("content");
|
|
|
| + /**
|
| + * Checks if this type is supported on the current platform
|
| + */
|
| + static bool get supported => true;
|
| +
|
|
|
| /** @domName HTMLContentElement.resetStyleInheritance */
|
| bool get resetStyleInheritance native "HTMLContentElement_resetStyleInheritance_Getter";
|
| @@ -6404,6 +6409,11 @@ class DataListElement extends _Element_Merged {
|
| ///@docsEditable true
|
| factory DataListElement() => document.$dom_createElement("datalist");
|
|
|
| + /**
|
| + * Checks if this type is supported on the current platform
|
| + */
|
| + static bool get supported => true;
|
| +
|
|
|
| /** @domName HTMLDataListElement.options */
|
| HtmlCollection get options native "HTMLDataListElement_options_Getter";
|
| @@ -6822,6 +6832,11 @@ class DetailsElement extends _Element_Merged {
|
| ///@docsEditable true
|
| factory DetailsElement() => document.$dom_createElement("details");
|
|
|
| + /**
|
| + * Checks if this type is supported on the current platform
|
| + */
|
| + static bool get supported => true;
|
| +
|
|
|
| /** @domName HTMLDetailsElement.open */
|
| bool get open native "HTMLDetailsElement_open_Getter";
|
| @@ -8801,6 +8816,10 @@ abstract class Element extends Node implements ElementTraversal {
|
| *
|
| * For standard elements it is more preferable to use the type constructors:
|
| * var element = new DivElement();
|
| + *
|
| + * See also:
|
| + *
|
| + * * [isTagSupported]
|
| */
|
| factory Element.tag(String tag) =>
|
| _ElementFactoryProvider.createElement_tag(tag);
|
| @@ -9014,6 +9033,16 @@ abstract class Element extends Node implements ElementTraversal {
|
| this.insertAdjacentHtml('beforeend', text);
|
| }
|
|
|
| + /**
|
| + * Checks to see if the tag name is supported by the current platform.
|
| + *
|
| + * The tag should be a valid HTML tag name.
|
| + */
|
| + static bool isTagSupported(String tag) {
|
| + var e = _ElementFactoryProvider.createElement_tag(tag);
|
| + return e is Element && !(e is UnknownElement);
|
| + }
|
| +
|
| // Hooks to support custom WebComponents.
|
| /**
|
| * Experimental support for [web components][wc]. This field stores a
|
| @@ -9589,6 +9618,11 @@ class EmbedElement extends _Element_Merged {
|
| ///@docsEditable true
|
| factory EmbedElement() => document.$dom_createElement("embed");
|
|
|
| + /**
|
| + * Checks if this type is supported on the current platform
|
| + */
|
| + static bool get supported => true;
|
| +
|
|
|
| /** @domName HTMLEmbedElement.align */
|
| String get align native "HTMLEmbedElement_align_Getter";
|
| @@ -14281,6 +14315,11 @@ class KeygenElement extends _Element_Merged {
|
| ///@docsEditable true
|
| factory KeygenElement() => document.$dom_createElement("keygen");
|
|
|
| + /**
|
| + * Checks if this type is supported on the current platform
|
| + */
|
| + static bool get supported => true;
|
| +
|
|
|
| /** @domName HTMLKeygenElement.autofocus */
|
| bool get autofocus native "HTMLKeygenElement_autofocus_Getter";
|
| @@ -14696,6 +14735,11 @@ class MapElement extends _Element_Merged {
|
| class MarqueeElement extends _Element_Merged {
|
| MarqueeElement.internal() : super.internal();
|
|
|
| + /**
|
| + * Checks if this type is supported on the current platform
|
| + */
|
| + static bool get supported => true;
|
| +
|
|
|
| /** @domName HTMLMarqueeElement.behavior */
|
| String get behavior native "HTMLMarqueeElement_behavior_Getter";
|
| @@ -15964,6 +16008,11 @@ class MeterElement extends _Element_Merged {
|
| ///@docsEditable true
|
| factory MeterElement() => document.$dom_createElement("meter");
|
|
|
| + /**
|
| + * Checks if this type is supported on the current platform
|
| + */
|
| + static bool get supported => true;
|
| +
|
|
|
| /** @domName HTMLMeterElement.high */
|
| num get high native "HTMLMeterElement_high_Getter";
|
| @@ -17353,6 +17402,11 @@ class ObjectElement extends _Element_Merged {
|
| ///@docsEditable true
|
| factory ObjectElement() => document.$dom_createElement("object");
|
|
|
| + /**
|
| + * Checks if this type is supported on the current platform
|
| + */
|
| + static bool get supported => true;
|
| +
|
|
|
| /** @domName HTMLObjectElement.align */
|
| String get align native "HTMLObjectElement_align_Getter";
|
| @@ -17697,6 +17751,11 @@ class OutputElement extends _Element_Merged {
|
| ///@docsEditable true
|
| factory OutputElement() => document.$dom_createElement("output");
|
|
|
| + /**
|
| + * Checks if this type is supported on the current platform
|
| + */
|
| + static bool get supported => true;
|
| +
|
|
|
| /** @domName HTMLOutputElement.defaultValue */
|
| String get defaultValue native "HTMLOutputElement_defaultValue_Getter";
|
| @@ -18221,6 +18280,11 @@ class ProgressElement extends _Element_Merged {
|
| ///@docsEditable true
|
| factory ProgressElement() => document.$dom_createElement("progress");
|
|
|
| + /**
|
| + * Checks if this type is supported on the current platform
|
| + */
|
| + static bool get supported => true;
|
| +
|
|
|
| /** @domName HTMLProgressElement.labels */
|
| List<Node> get labels native "HTMLProgressElement_labels_Getter";
|
| @@ -22235,6 +22299,11 @@ class TrackElement extends _Element_Merged {
|
| ///@docsEditable true
|
| factory TrackElement() => document.$dom_createElement("track");
|
|
|
| + /**
|
| + * Checks if this type is supported on the current platform
|
| + */
|
| + static bool get supported => true;
|
| +
|
| static const int ERROR = 3;
|
|
|
| static const int LOADED = 2;
|
| @@ -25160,9 +25229,9 @@ class Window extends EventTarget implements WindowBase {
|
|
|
|
|
| /** @domName DOMWindow.indexedDB */
|
| - @SupportedBrowser(SupportedBrowser.CHROME, '23.0')
|
| - @SupportedBrowser(SupportedBrowser.FIREFOX, '15.0')
|
| - @SupportedBrowser(SupportedBrowser.IE, '10.0')
|
| + @SupportedBrowser(SupportedBrowser.CHROME)
|
| + @SupportedBrowser(SupportedBrowser.FIREFOX, '15')
|
| + @SupportedBrowser(SupportedBrowser.IE, '10')
|
| @Experimental()
|
| IdbFactory get indexedDB native "DOMWindow_indexedDB_Getter";
|
|
|
| @@ -25769,9 +25838,9 @@ class WorkerContext extends EventTarget {
|
|
|
|
|
| /** @domName WorkerContext.indexedDB */
|
| - @SupportedBrowser(SupportedBrowser.CHROME, '23.0')
|
| - @SupportedBrowser(SupportedBrowser.FIREFOX, '15.0')
|
| - @SupportedBrowser(SupportedBrowser.IE, '10.0')
|
| + @SupportedBrowser(SupportedBrowser.CHROME)
|
| + @SupportedBrowser(SupportedBrowser.FIREFOX, '15')
|
| + @SupportedBrowser(SupportedBrowser.IE, '10')
|
| @Experimental()
|
| IdbFactory get indexedDB native "WorkerContext_indexedDB_Getter";
|
|
|
|
|