[xmljs-users] Found an error in xmlw3cdom.js:3211
Brought to you by:
djoham,
witchhunter
|
From: Thomas D. <web...@si...> - 2007-03-22 12:43:03
|
Hi everybody,
I got an error using xmlw3cdom.js, in the function
DOMElement.prototype.setAttributeNS, near the line 3180.
I received a ReferenceError: name is not defined, when i tried to set an
attribute to an element, at ligne 3211:
// if this Attribute is an ID
if (this.ownerDocument.implementation._isIdDeclaration(name)) {
this.id = value; // cache ID for getElementById()
}
It seems that there's a mispelling, and that name should be qualifiedName,
as the name var is not defined.
A corrected version could be :
// if this Attribute is an ID
if (this.ownerDocument.implementation._isIdDeclaration(qualifiedName)) {
this.id = value; // cache ID for getElementById()
}
Apologizes if this is not the correct mailing-list or contact to report
errors.
Have a nice day,
Thomas Dubois
|