dom/element/attributes: some fixes for name polyfills