<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>115954</bug_id>
          
          <creation_ts>2013-05-11 01:08:33 -0700</creation_ts>
          <short_desc>[att~=val] attribute selectors fail when tab is used as the whitespace character</short_desc>
          <delta_ts>2014-09-17 14:58:45 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>136807</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BlinkMergeCandidate</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dan Nye">dan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>benjamin</cc>
    
    <cc>koivisto</cc>
    
    <cc>msaboff</cc>
    
    <cc>richard.gibson</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>887764</commentid>
    <comment_count>0</comment_count>
      <attachid>201453</attachid>
    <who name="Dan Nye">dan</who>
    <bug_when>2013-05-11 01:08:33 -0700</bug_when>
    <thetext>Created attachment 201453
Test case showing the problem

Note: I have also reported this bug in the Chromium bug tracker... presumably now they&apos;ve forked WebKit to Blink, we need to report issues both here and there? (https://code.google.com/p/chromium/issues/detail?id=239786)

Steps to reproduce the problem:
1. Create an element that has an attribute with a whitespace-delimited list of values. Make the whitespace a space character
2. Create another element that has an attribute with a whitespace-delimited list of values. Make the whitespace a tab character
3. Assign styles to those values using the [att~=val] attribute selector
4. Load the page

What is the expected behaviour?
Both elements should have identical styling

What went wrong?
Only the element whose attribute is delimited with space characters will see the styling applied

Does this work in other browsers? Yes

This fails in the following browsers:
WebKit r149907 nightly build from 10 May 2013 (OSX 10.8.3)
Safari 6.0.4 (8536.29.13) (OSX 10.8.3)
Chrome 28.0.1500.6 dev (OSX 10.8.3)

This passes in the following browsers:
Opera 12.15 (build 1748) (OSX 10.8.3)
Firefox 20.0 (OSX 10.8.3)
IE10 (Win 7)
IE9 (Win 7)
IE8 (Win 7)
IE7 (Win XP)

I&apos;ve not tested on Windows in any non-IE browser.

Interestingly enough, the Chromium team have marked this as being part of the Blink-JavaScript component, whereas I&apos;d say it was a CSS bug. For this reason (they certainly know more about browser internals than I do), I&apos;ve left the &quot;component&quot; field here as &quot;New Bugs&quot; rather than setting it to &quot;CSS&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>887868</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-05-11 17:03:58 -0700</bug_when>
    <thetext>&gt; presumably now they&apos;ve forked WebKit to Blink, we need to report issues both here and there?

This is correct. Cross-referencing the bugs would be helpful to avoid duplicating work (think you for providing a link to chromium bug tracker).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>891860</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-05-21 10:03:52 -0700</bug_when>
    <thetext>*** Bug 116504 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>891861</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-05-21 10:04:21 -0700</bug_when>
    <thetext>This was fixed in Blink: https://chromium.googlesource.com/chromium/blink/+/3b062d8c310875be0fe6f26a89e2592104944e83</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1035773</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Gibson">richard.gibson</who>
    <bug_when>2014-09-17 14:45:26 -0700</bug_when>
    <thetext>I didn&apos;t see this bug when I filed #136807, but they are identical. I suppose this one should be closed as a duplicate, temporal anomalies notwithstanding.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1035777</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-09-17 14:58:45 -0700</bug_when>
    <thetext>As that one is fixed already, forward duping.

*** This bug has been marked as a duplicate of bug 136807 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>201453</attachid>
            <date>2013-05-11 01:08:33 -0700</date>
            <delta_ts>2013-05-11 01:08:33 -0700</delta_ts>
            <desc>Test case showing the problem</desc>
            <filename>whitespaceAttributeSelectorBug.html</filename>
            <type>text/html</type>
            <size>583</size>
            <attacher name="Dan Nye">dan</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGNsYXNzPSJuby1qcyI+CjxoZWFkPgoJPG1ldGEgY2hhcnNl
dD0idXRmLTgiPgoJPHRpdGxlPkF0dHJpYnV0ZSBzZWxlY3RvciBidWc8L3RpdGxlPgoJCgk8c3R5
bGUgdHlwZT0idGV4dC9jc3MiPgoJCXBbZGF0YS1mb3JtYXR0aW5nfj0iYm9sZCJdIHsKCQkJZm9u
dC13ZWlnaHQ6IGJvbGQ7CgkJfQoKCQlwW2RhdGEtZm9ybWF0dGluZ349Iml0YWxpYyJdIHsKCQkJ
Zm9udC1zdHlsZTogaXRhbGljOwoJCX0KCgkJcFtkYXRhLWZvcm1hdHRpbmd+PSJ1bmRlcmxpbmUi
XSB7CgkJCXRleHQtZGVjb3JhdGlvbjogdW5kZXJsaW5lOwoJCX0KCTwvc3R5bGU+CjwvaGVhZD4K
Cjxib2R5PgoJPHAgZGF0YS1mb3JtYXR0aW5nPSJib2xkIGl0YWxpYyB1bmRlcmxpbmUiPgoJCVRo
aXMgdGV4dCBzaG91bGQgYmUgYm9sZCwgaXRhbGljaXNlZCwgYW5kIHVuZGVybGluZWQKCTwvcD4K
CTxwIGRhdGEtZm9ybWF0dGluZz0iYm9sZAlpdGFsaWMJdW5kZXJsaW5lIj4KCQlUaGlzIHRleHQg
c2hvdWxkIGFsc28gYmUgYm9sZCwgaXRhbGljaXNlZCwgYW5kIHVuZGVybGluZWQKCTwvcD4KPC9i
b2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>