Add support for [attr~="value"] selector (attribute contains word)
authorJakub Narebski <jnareb@gmail.com>
Sun, 9 Jan 2011 12:31:36 +0000 (13:31 +0100)
committerJakub Narebski <jnareb@gmail.com>
Sun, 9 Jan 2011 12:31:36 +0000 (13:31 +0100)
commit5b63d2447b01acd333b2a0a9adb7aa793b72fcf6
treeb49751782d270a6dc5cd0e76c33076bcc041219a
parent0e082da701c27cf5cce0f56c3f1a9692ffbb2580
Add support for [attr~="value"] selector (attribute contains word)

http://www.w3.org/TR/CSS2/selector.html#attribute-selectors
http://api.jquery.com/attribute-contains-word-selector/

  This selector matches the test string against each word in the
  attribute value, where a "word" is defined as a string delimited by
  whitespace.  The selector matches if the test string is exactly equal
  to any of the words.
lib/HTML/Zoom/SelectorParser.pm
t/selectors.t