Closed backplane-import closed 13 years ago
Anton has established that the error is caused by the space character in the call to addClassName, in the StyleHoverishly() method (in eventTargetProxy.js).
Updates
Owner set to creaven
Ticket status set to FixPending
Turns out that the space character is not the problem, since the UX.addClassName() method is designed to take spaces into account. Instead the problem is that the code is using a non-existent error code. Instead of this (in UXUtils.js):
if (e.code != e.NS_ERROR_DOM_INVALID_CHARACTER_ERR) throw e;
we should have this:
if (e.code != e.INVALID_CHARACTER_ERR) throw e;
Thanks to Anton for the pointer, though.
Updates
Owner set to markbirbeck
Added regression test in ra343e3b9e21c5723a5b992b234529a043855654e.
This issue was closed by revision f89c5de2cd5a9f754d94be5dbb6bf8e1c7c9ff16 (originally 8cc27d4002).
Updates
Ticket status set to Fixed
Imported from backplanejs Google Code issue 101.
What steps will reproduce the problem?
What is the expected output? What do you see instead? If Firebug is open there should be no errors. Instead we get an error each time the mouse is moved:
String contains an invalid character" code: "5 element.classList.add(classString);
Priority: Medium Type: Defect