CSS3 Selector Test: attribute selector failing to match empty string .blox9[foo~=""] { background-color: red; } <div class="blox9 unitTest" foo="" title="[~=] attribute selector looking for empty string in empty attribute"></div>
Created attachment 19559 [details] test case
Created attachment 19985 [details] patch for the bug Patch with test case for layout tests attached.
Comment on attachment 19985 [details] patch for the bug Looks good to me. I'll fix the comment when landing. // The selector's value can't contain a space, neither can be empty, or it's totally bogus. should be: // Empty selectors or selectors containing spaces are bogus.
r31238