Ticket Hash: 011e259c6972c3194dd5f30c9eadebf0b1831222
Title: The getAttributeNS method doesn't accept the documented defaultValue argument.
Status: Closed Type: Code_Defect
Severity: Minor Priority: Immediate
Subsystem: Resolution: Fixed
Last Modified: 2019-08-12 21:22:28
Version Found In: 0.8.3 - 0.9.2
User Comments:
anonymous added on 2019-08-12 20:07:36: (text/x-fossil-wiki)
The domNode manual page says the signature for the getAttributeNS method is:
<ul><pre>getAttributeNS uri localName ?defaultValue?</pre></ul>
The same is reported when giving an invalid method to a dom node command.

However, when trying to pass a default value, the command throws an error:
<ul><pre>% $node getAttributeNS $uri $attr $default
wrong # args: should be "domNode0x55ba42ccfb60 getAttributeNS uri localName"</pre></ul>

I found this on 0.8.3, but looking at the latest version of the source code, I am quite confident the situation is still the same.

rolf added on 2019-08-12 21:22:28: (text/x-fossil-plain)
You're right. [090cdefdab8b9] brought code and doc in sync (doing, what the doc say). 

(And: Ummmh... Hadn't suspected such a simple thing still lingering around. Looks, this code was changend (and seriosly looked at) last time 17 years aog.)

Thanks for reporting!