| Index: sdk/lib/html/dart2js/html_dart2js.dart
|
| diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
|
| index 74a3021cc74a7a2ccd0781248c17377e376e4de2..58600a0ee2cf1c5831b266e9cf29e6417babf01e 100644
|
| --- a/sdk/lib/html/dart2js/html_dart2js.dart
|
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart
|
| @@ -11039,7 +11039,13 @@ abstract class TextInputElementBase implements InputElementBase {
|
| /**
|
| * Similar to [TextInputElement], but on platforms where search is styled
|
| * differently this will get the search style.
|
| + *
|
| + * Use [supported] to check if this is supported on the current platform.
|
| */
|
| +@SupportedBrowser(SupportedBrowser.CHROME)
|
| +@SupportedBrowser(SupportedBrowser.FIREFOX)
|
| +@SupportedBrowser(SupportedBrowser.IE, '10')
|
| +@SupportedBrowser(SupportedBrowser.SAFARI)
|
| abstract class SearchInputElement implements TextInputElementBase {
|
| factory SearchInputElement() => new InputElement(type: 'search');
|
|
|
| @@ -11048,6 +11054,11 @@ abstract class SearchInputElement implements TextInputElementBase {
|
|
|
| /// @domName HTMLInputElement.list;
|
| Element get list;
|
| +
|
| + /// Returns true if this input type is supported on the current platform.
|
| + static bool get supported {
|
| + return (new InputElement(type: 'search')).type == 'search';
|
| + }
|
| }
|
|
|
| /**
|
| @@ -11065,12 +11076,23 @@ abstract class TextInputElement implements TextInputElementBase {
|
|
|
| /**
|
| * A control for editing an absolute URL.
|
| + *
|
| + * Use [supported] to check if this is supported on the current platform.
|
| */
|
| +@SupportedBrowser(SupportedBrowser.CHROME)
|
| +@SupportedBrowser(SupportedBrowser.FIREFOX)
|
| +@SupportedBrowser(SupportedBrowser.IE, '10')
|
| +@SupportedBrowser(SupportedBrowser.SAFARI)
|
| abstract class UrlInputElement implements TextInputElementBase {
|
| factory UrlInputElement() => new InputElement(type: 'url');
|
|
|
| /// @domName HTMLInputElement.list;
|
| Element get list;
|
| +
|
| + /// Returns true if this input type is supported on the current platform.
|
| + static bool get supported {
|
| + return (new InputElement(type: 'url')).type == 'url';
|
| + }
|
| }
|
|
|
| /**
|
| @@ -11078,17 +11100,34 @@ abstract class UrlInputElement implements TextInputElementBase {
|
| *
|
| * This provides a single line of text with minimal formatting help since
|
| * there is a wide variety of telephone numbers.
|
| + *
|
| + * Use [supported] to check if this is supported on the current platform.
|
| */
|
| +@SupportedBrowser(SupportedBrowser.CHROME)
|
| +@SupportedBrowser(SupportedBrowser.FIREFOX)
|
| +@SupportedBrowser(SupportedBrowser.IE, '10')
|
| +@SupportedBrowser(SupportedBrowser.SAFARI)
|
| abstract class TelephoneInputElement implements TextInputElementBase {
|
| factory TelephoneInputElement() => new InputElement(type: 'tel');
|
|
|
| /// @domName HTMLInputElement.list;
|
| Element get list;
|
| +
|
| + /// Returns true if this input type is supported on the current platform.
|
| + static bool get supported {
|
| + return (new InputElement(type: 'tel')).type == 'tel';
|
| + }
|
| }
|
|
|
| /**
|
| * An e-mail address or list of e-mail addresses.
|
| + *
|
| + * Use [supported] to check if this is supported on the current platform.
|
| */
|
| +@SupportedBrowser(SupportedBrowser.CHROME)
|
| +@SupportedBrowser(SupportedBrowser.FIREFOX)
|
| +@SupportedBrowser(SupportedBrowser.IE, '10')
|
| +@SupportedBrowser(SupportedBrowser.SAFARI)
|
| abstract class EmailInputElement implements TextInputElementBase {
|
| factory EmailInputElement() => new InputElement(type: 'email');
|
|
|
| @@ -11121,6 +11160,11 @@ abstract class EmailInputElement implements TextInputElementBase {
|
|
|
| /// @domName HTMLInputElement.size
|
| int size;
|
| +
|
| + /// Returns true if this input type is supported on the current platform.
|
| + static bool get supported {
|
| + return (new InputElement(type: 'email')).type == 'email';
|
| + }
|
| }
|
|
|
| /**
|
|
|