Skip to content
  • darin's avatar
    LayoutTests: · bbf2fa2b
    darin authored
            Reviewed by Darin.
    
            - Test for http://bugzilla.opendarwin.org/show_bug.cgi?id=7761
              Tabs in class attribute not treated as whitespace
    
            * fast/dom/Element/class-attribute-whitespace-expected.checksum: Added.
            * fast/dom/Element/class-attribute-whitespace-expected.png: Added.
            * fast/dom/Element/class-attribute-whitespace-expected.txt: Added.
            * fast/dom/Element/class-attribute-whitespace.html: Added.
            NOTE: This test will get broken if "eol-style" processing is done on it.
    
    WebCore:
    
            Test: fast/dom/Element/class-attribute-whitespace.html
    
            Reviewed by Darin.
    
            - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7761
              Tabs in class attribute not treated as whitespace
    
            * dom/dom_elementimpl.cpp:
            (WebCore::isClassWhitespace): Helper function to check if a character
            in the class attribute should be treated as whitespace. Added \r and \t.
            (WebCore::NamedMappedAttrMapImpl::parseClassAttribute): Instead of creating
            a QStringList and iterating it, do everything in one pass over the string.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13383 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    bbf2fa2b