Revert "Ensure SetAttribute looks up for existing attributes with no namespace"

This reverts commit 065036c1fcd06e393e5ca1924a733deaab254d27.
Avoid duplicated code
Added Element::set_custom_attribute