WebCore:
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 29 Mar 2009 15:37:49 +0000 (15:37 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 29 Mar 2009 15:37:49 +0000 (15:37 +0000)
commit1b70b232bd524abeb53c6bd552aac7b31617bfd5
tree9f6526ab574e72010af5b75279c63fbb6c0a0b1e
parent43d45ff1501f1e62d04cbf3ced9e133d27f1b8cf
WebCore:

2009-03-29  Darin Adler  <darin@apple.com>

        Reviewed by Dan Bernstein.

        <rdar://problem/6015407> attr parsing should allow only identifiers

        Test: fast/css/attr-parsing.html

        * css/CSSParser.cpp:
        (WebCore::CSSParser::parseContent): Allow only CSS_IDENT, and filter out
        identifiers that start with "-".
        * css/CSSPrimitiveValue.cpp:
        (WebCore::CSSPrimitiveValue::cssText): Added a case for CSS_ATTR so the test
        case works. This has the pleasant side effect of fixing a bug too.

LayoutTests:

2009-03-29  Darin Adler  <darin@apple.com>

        Reviewed by Dan Bernstein.

        <rdar://problem/6015407> attr parsing should allow only identifiers

        * fast/css/attr-parsing-expected.txt: Added.
        * fast/css/attr-parsing.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@42081 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css/attr-parsing-expected.txt [new file with mode: 0644]
LayoutTests/fast/css/attr-parsing.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/css/CSSParser.cpp
WebCore/css/CSSPrimitiveValue.cpp