lestrrat-go / libxml2

Interface to libxml2, with DOM interface
MIT License
230 stars 56 forks source link

Proxy ErrAttributeNotFound from clib for consumers to test against #37

Closed Fiveside closed 7 years ago

Fiveside commented 7 years ago

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.

lestrrat commented 7 years ago

thank you!