Element.Highlight bug?
Reported by Simon Harris | May 16th, 2008 @ 05:14 PM
passing an empty string "" for endcolor and/or restorecolor is treated as if nothing were passed in even though they are valid values for style. I've attached a patch.
Comments and changes to this ticket
-
Juriy Zaytsev May 16th, 2008 @ 06:28 PM
- → State changed from new to bug
I'd rather test for typeof != 'undefined'
if (!Object.isUndefined(this.options.endcolor)) { ... } -
-
Simon Harris May 17th, 2008 @ 01:23 AM
Only I think it should be:
if (Object.isUndefined(this.options.endcolor)) {
...
}
-
-
John-David Dalton May 29th, 2008 @ 05:28 AM
- → Assigned user changed from to Thomas Fuchs
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
The Prototype JavaScript library.
