Changeset 30704 in webkit


Ignore:
Timestamp:
Mar 2, 2008 6:02:28 PM (16 years ago)
Author:
kevino@webkit.org
Message:

Reviewed by Dave Hyatt.

Gracefully handle a CSS rule containing an invalid value.
(Fixes http://bugs.webkit.org/show_bug.cgi?id=16898)

Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r30700 r30704  
     12008-03-02  Kevin Ollivier  <kevino@theolliviers.com>
     2
     3        Reviewed by Dave Hyatt.
     4
     5        Gracefully handle a CSS rule containing an invalid value.
     6        (Fixes http://bugs.webkit.org/show_bug.cgi?id=16898)
     7
     8        * fast/css/invalid-rule-value-expected.txt: Added.
     9        * fast/css/invalid-rule-value.html: Added.
     10
    1112008-03-01  Oliver Hunt  <oliver@apple.com>
    212
  • trunk/WebCore/ChangeLog

    r30703 r30704  
     12008-03-02  Kevin Ollivier  <kevino@theolliviers.com>
     2
     3        Reviewed by Dave Hyatt.
     4
     5        Gracefully handle a CSS rule containing an invalid value.
     6        (Fixes http://bugs.webkit.org/show_bug.cgi?id=16898)
     7
     8        * css/CSSGrammar.y:
     9
    1102008-03-02  Alp Toker  <alp@atoker.com>
    211
  • trunk/WebCore/css/CSSGrammar.y

    r30429 r30704  
    986986        $$ = false;
    987987    }
     988    |
     989    property ':' maybe_space error {
     990        /* if we come across rules with invalid values like this case: p { weight: *; }, just discard the rule */
     991        $$ = false;
     992    }
    988993  ;
    989994
Note: See TracChangeset for help on using the changeset viewer.