Support for using namespace-uri() with attributes.
This commit is contained in:
1 parent
0d41693bfc
commit
da09f1296c
2 files changed
+6
-2
No files matched your search
@@ -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 ''
|
||||
|
||||
Reference in new issue
Block a user