getAttributeType  
  fun getAttributeType(tagName: String, attribute: String, elementNs: String? = definedExternally, attrNs: String? = definedExternally): String?(source)
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.