summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2016-12-28 20:57:16 +0000
committerGitHub <noreply@github.com>2016-12-28 20:57:16 +0000
commit46e4b4854e9cb564950e7802aaaaf1a2c8c8cab9 (patch)
tree60d413da193d38e1ac527b8d0924f0617eb00ef4
parentb42b467b777e2c1cd4ecabbaac19ed98d91fbe00 (diff)
parentfa51de8c005c158e9e7e0906ed22f7d9d76672eb (diff)
downloadNim-46e4b4854e9cb564950e7802aaaaf1a2c8c8cab9.tar.gz
Merge pull request #5160 from mpcjanssen/xmldom-mpcjanssen
Define getAttributes(NS) on PNode instead of PElement.
-rw-r--r--lib/pure/xmldom.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/xmldom.nim b/lib/pure/xmldom.nim
index 559f45348..3c891c81b 100644
--- a/lib/pure/xmldom.nim
+++ b/lib/pure/xmldom.nim
@@ -890,7 +890,7 @@ proc tagName*(el: PElement): string =
   return el.fTagName
 
 # Procedures
-proc getAttribute*(el: PElement, name: string): string =
+proc getAttribute*(el: PNode, name: string): string =
   ## Retrieves an attribute value by ``name``
   if isNil(el.attributes):
     return nil
@@ -900,7 +900,7 @@ proc getAttribute*(el: PElement, name: string): string =
   else:
     return nil
 
-proc getAttributeNS*(el: PElement, namespaceURI: string, localName: string): string =
+proc getAttributeNS*(el: PNode, namespaceURI: string, localName: string): string =
   ## Retrieves an attribute value by ``localName`` and ``namespaceURI``
   if isNil(el.attributes):
     return nil