getAttributeType method

String? getAttributeType(
  1. String tagName,
  2. String attribute, [
  3. String? elementNs,
  4. String? attrNs,
])

The getAttributeType() method of the TrustedTypePolicyFactory interface allows web developers to check if a Trusted Type is required for an element, and if so which Trusted Type is used.

Implementation

external String? getAttributeType(
  String tagName,
  String attribute, [
  String? elementNs,
  String? attrNs,
]);