[gxml] GomElement: Fixed detection of xmlns redefinition
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] GomElement: Fixed detection of xmlns redefinition
- Date: Thu, 3 Nov 2016 19:32:54 +0000 (UTC)
commit c7a3a60bea22add99f3a263bca0e085e737c7363
Author: Daniel Espinosa <esodan gmail com>
Date: Thu Nov 3 13:31:06 2016 -0600
GomElement: Fixed detection of xmlns redefinition
gxml/GomElement.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gxml/GomElement.vala b/gxml/GomElement.vala
index 9dcac24..e32fb0b 100644
--- a/gxml/GomElement.vala
+++ b/gxml/GomElement.vala
@@ -312,7 +312,7 @@ public class GXml.GomElement : GomNode,
string nsprefix = _element.lookup_prefix (node.node_value);
string nsuri = _element.lookup_namespace_uri (node.node_name);
if ((nsprefix != null || nsuri != null)
- && (nsprefix != (node as DomAttr).prefix
+ && (nsprefix != (node as DomAttr).local_name
|| nsuri != node.node_value)) {
GLib.message ("Prefix: "+nsprefix+" Prefix Attr:"+(node as DomAttr).local_name);
throw new DomError.NAMESPACE_ERROR
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]