dart / 2 / dart-html / element / istagsupported.html

isTagSupported method

bool isTagSupported(
  1. String tag
)

Checks to see if the tag name is supported by the current platform.

The tag should be a valid HTML tag name.

Implementation

static bool isTagSupported(String tag) {
  var e = _ElementFactoryProvider.createElement_tag(tag, null);
  return e is Element && !(e is UnknownElement);
}

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-html/Element/isTagSupported.html