Summary: | CSSKeyframesRule::findRule() and deleteRule() should accept 'from' and 'to' as well as percentages | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Simon Fraser (smfr) <simon.fraser> | ||||||
Component: | CSS | Assignee: | Simon Fraser (smfr) <simon.fraser> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | cmarrin, dino | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Mac | ||||||||
OS: | OS X 10.5 | ||||||||
Attachments: |
|
Description
Simon Fraser (smfr)
2009-11-17 08:15:40 PST
Created attachment 43656 [details]
Patch
Comment on attachment 43656 [details]
Patch
CSSOM APIs like getPropertyValue() are case-insensitive. Shouldn’t this also be case-insensitive?
Good point. Created attachment 43660 [details]
Patch v2.
Comment on attachment 43660 [details] Patch v2. > + if (key.lower() == "from") I think the way this is typically done is using equalIgnoringCase, although I thought there was also a special function for when one of the strings is known to be all-lowercase, but I can’t find it right now. r=me either way |