Changeset 31238 in webkit


Ignore:
Timestamp:
Mar 23, 2008 2:08:40 PM (16 years ago)
Author:
eric@webkit.org
Message:

Reviewed by eseidel. Landed by eseidel.

Bug 17685: [~=] attribute selector failing to match empty string
<http://bugs.webkit.org/show_bug.cgi?id=17685>

Test: fast/css/attribute-selector-empty-value.html

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

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r31236 r31238  
     12008-03-23  Robert Blaut  <webkit@blaut.biz>
     2
     3        Reviewed by eseidel.  Landed by eseidel.
     4
     5        Test to ensure [~=] attribute selector doesn't match empty string
     6
     7        * fast/css/attribute-selector-empty-value.html: Added.
     8
    192008-03-23  Oliver Hunt  <oliver@apple.com>
    210
  • trunk/WebCore/ChangeLog

    r31235 r31238  
     12008-03-23  Robert Blaut  <webkit@blaut.biz>
     2
     3        Reviewed by eseidel.  Landed by eseidel.
     4
     5        Bug 17685: [~=] attribute selector failing to match empty string
     6        <http://bugs.webkit.org/show_bug.cgi?id=17685>
     7
     8        Test: fast/css/attribute-selector-empty-value.html
     9
     10        * css/CSSStyleSelector.cpp:
     11        (WebCore::CSSStyleSelector::checkOneSelector):
     12
    1132008-03-22  Marco Barisione  <marco.barisione@collabora.co.uk>
    214
  • trunk/WebCore/css/CSSStyleSelector.cpp

    r31160 r31238  
    14651465        case CSSSelector::List:
    14661466        {
    1467             // The selector's value can't contain a space, or it's totally bogus.
    1468             if (sel->m_value.contains(' '))
     1467            // Ignore empty selectors or selectors containing spaces
     1468            if (sel->m_value.contains(' ') || sel->m_value.isEmpty())
    14691469                return false;
    14701470
Note: See TracChangeset for help on using the changeset viewer.