|Title:||The getAttributeNS method doesn't accept the documented defaultValue argument.|
|Last Modified:||2019-08-12 21:22:28|
|Version Found In:||0.8.3 - 0.9.2|
anonymous added on 2019-08-12 20:07:36:
The domNode manual page says the signature for the getAttributeNS method is:
getAttributeNS uri localName ?defaultValue?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:
% $node getAttributeNS $uri $attr $default wrong # args: should be "domNode0x55ba42ccfb60 getAttributeNS uri localName"
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:
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!