Support for using namespace-uri() with attributes.

This commit is contained in:
Yorick Peterse committed 2014-08-21 22:36:18 +02:00
1 parent 0d41693bfc
commit da09f1296c
2 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -751,7 +751,7 @@ module Oga
def on_call_namespace_uri(context, expression = nil)
node = function_node(context, expression)
if node.is_a?(XML::Element) and node.namespace
if node.respond_to?(:namespace) and node.namespace
return node.namespace.uri
else
return ''