canSetAttributeNS method
Determines if the attribute with given namespace and qualified name can be created if not already present in the attribute list of the element. If the attribute with the same qualified name and namespaceURI is already present in the element's attribute list, it tests whether the value of the attribute and its prefix can be set to the new value.
canSetAttributeNS(namespaceURI, qualifiedName, value)
Parameters
String namespaceURI
namespaceURI of namespace.
String qualifiedName
Qualified name of attribute.
String value
Value to be assigned to the attribute.
Returns
unsigned short. A validation state constant.
这对您有帮助吗?