Implement Node interface in Element and Attribute

I don't know what this is so I have no idea if it makes sense for Attribute