Summary: | apl.aip.org menu does not work (property names should be case sensitive) | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Michael Zedler <michael.zedler> | ||||||
Component: | CSS | Assignee: | Darin Adler <darin> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | ddkilzer, ggaren, mjs, sam | ||||||
Priority: | P2 | Keywords: | HasReduction, InRadar | ||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Mac | ||||||||
OS: | OS X 10.5 | ||||||||
URL: | http://apl.aip.org/ | ||||||||
Attachments: |
|
Description
Michael Zedler
2008-04-29 03:52:53 PDT
Created attachment 20890 [details]
reduction
Code snippet from the linked page:
ZIndex = 5000;
with (object.style) {
zIndex = --ZIndex;
}
In WebKit the first letter of the property name inside the with-statement is not case sensitive. ZIndex is the same as zIndex. The above code sets zIndex to -1 and the menu is hidden.
Confirmed with Safari 3.1.1 (5525.20) on Mac OS X 10.5.x (Leopard) and with WebKit nightly build r32698. Works on Firefox 2.0.0.x. The bug seems to be in JSCSSStyleDeclarationCustom.cpp in cssPropertyName. The fix is in this line: name.append(toASCIILower(propertyName.data()[i++])); If we just remove the toASCIILower, that would fix the bug. Created attachment 21433 [details]
patch
Committed revision 34312. |