Don't overwrite namespace_name with "xmlns".

This was a leftover from an early prototype.
This commit is contained in:
Yorick Peterse committed 2014-09-15 21:38:53 +02:00
1 parent 41526e7013
commit 1abba1be9c
1 file changed
-6
-6
View File
@@ -291,12 +291,6 @@ module Oga
remove = attr.name == XMLNS_PREFIX ||
attr.namespace_name == XMLNS_PREFIX
# If the attribute sets the default namespace we'll also overwrite the
# namespace_name.
if attr.name == XMLNS_PREFIX
@namespace_name = XMLNS_PREFIX
end
register_namespace(attr.name, attr.value) if remove
remove