Skip to content
Browse files

document HTML::Selector's :has(string) pseudo class

  • Loading branch information...
1 parent 0887385 commit 3e1f4dbb4db852a3278a883b3f599664e5705de3 @misfo misfo committed Apr 23, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 actionpack/lib/action_controller/vendor/html-scanner/html/selector.rb
View
2 actionpack/lib/action_controller/vendor/html-scanner/html/selector.rb
@@ -128,6 +128,8 @@ module HTML
# (no parent element).
# * <tt>:empty</tt> -- Match the element only if it has no child elements,
# and no text content.
+ # * <tt>:content(string)</tt> -- Match the element only if it has <tt>string</tt>
+ # as its text content (ignoring leading and trailing whitespace).
# * <tt>:only-child</tt> -- Match the element if it is the only child (element)
# of its parent element.
# * <tt>:only-of-type</tt> -- Match the element if it is the only child (element)

0 comments on commit 3e1f4db

Please sign in to comment.
Something went wrong with that request. Please try again.