Right now if you use element.GetAttribute("some invalid attribute name"), go-libxml2 will return an error detailing that the attribute was not found. However, this is not the same error as the one detailed in the dom package.
This change moves the error from the dom package to the clib package where it can be used as part of GetAttribute and creates a link in the dom package for existing implementations.
Right now if you use
element.GetAttribute("some invalid attribute name")
, go-libxml2 will return an error detailing that the attribute was not found. However, this is not the same error as the one detailed in thedom
package.This change moves the error from the
dom
package to theclib
package where it can be used as part ofGetAttribute
and creates a link in the dom package for existing implementations.