Expose some methods in nsIContentUtils for attributes.
These methods will be useful when implementing the MutationObserver and observing attribute changes. In nsIMutationObserver
(AttributeChanged
and AttributeSetToCurrentValue
) converting nsAttrValue
to string is needed to obtain its old value, and GetNamespaceURI
to obtain its namespace URI string from the namespaceID
.