Changeset 25008 in webkit


Ignore:
Timestamp:
Aug 11, 2007 4:52:44 AM (17 years ago)
Author:
andrew
Message:

LayoutTests:

Reviewed by Mark Rowe.


Fix http://bugs.webkit.org/show_bug.cgi?id=14645
getPropertyValue should be case insensitive


Test for getPropertyValue, setProperty, removeProperty being case-insensitive

  • fast/css/css-properties-case-insensitive-expected.txt: Added.
  • fast/css/css-properties-case-insensitive.html: Added.

WebCore:

Reviewed by Mark Rowe.


Fix http://bugs.webkit.org/show_bug.cgi?id=14645
getPropertyValue should be case insensitive


When we get the propertyID for a given string we convert to lowercase.


This also applies to setProperty, removeProperty and others.


  • css/CSSStyleDeclaration.cpp: (WebCore::propertyID):
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r25002 r25008  
     12007-08-11  Andrew Wellington  <proton@wiretapped.net>
     2
     3        Reviewed by Mark Rowe.
     4       
     5        Fix http://bugs.webkit.org/show_bug.cgi?id=14645
     6        getPropertyValue should be case insensitive
     7       
     8        Test for getPropertyValue, setProperty, removeProperty being case-insensitive
     9
     10        * fast/css/css-properties-case-insensitive-expected.txt: Added.
     11        * fast/css/css-properties-case-insensitive.html: Added.
     12
    1132007-08-10  Anders Carlsson  <andersca@apple.com>
    214
  • trunk/WebCore/ChangeLog

    r25007 r25008  
     12007-08-11  Andrew Wellington  <proton@wiretapped.net>
     2
     3        Reviewed by Mark Rowe.
     4       
     5        Fix http://bugs.webkit.org/show_bug.cgi?id=14645
     6        getPropertyValue should be case insensitive
     7       
     8        When we get the propertyID for a given string we convert to lowercase.
     9       
     10        This also applies to setProperty, removeProperty and others.
     11       
     12        * css/CSSStyleDeclaration.cpp:
     13        (WebCore::propertyID):
     14
    1152007-08-11  Mark Rowe  <mrowe@apple.com>
    216
  • trunk/WebCore/css/CSSStyleDeclaration.cpp

    r19855 r25008  
    3030#include "DeprecatedValueList.h"
    3131#include "ksvgcssproperties.h"
     32#include <ctype.h>
    3233
    3334namespace WebCore {
     
    4849        if (c == 0 || c >= 0x7F)
    4950            return 0; // illegal character
    50         buffer[i] = c;
     51        buffer[i] = tolower(c);
    5152    }
    5253
Note: See TracChangeset for help on using the changeset viewer.