W3cubDocs

/Dart 2

isTagSupported method

bool isTagSupported (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 Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-html/Element/isTagSupported.html