aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/vendor
diff options
context:
space:
mode:
authormisfo <tedwardo2@gmail.com>2011-04-23 10:15:38 -0500
committermisfo <tedwardo2@gmail.com>2011-04-23 10:15:38 -0500
commit3e1f4dbb4db852a3278a883b3f599664e5705de3 (patch)
tree4423fb97dff0710d62982e27ca89a8c09071133b /actionpack/lib/action_controller/vendor
parent0887385d8e18acda857fccc7f5c97acfec129902 (diff)
downloadrails-3e1f4dbb4db852a3278a883b3f599664e5705de3.tar.gz
rails-3e1f4dbb4db852a3278a883b3f599664e5705de3.tar.bz2
rails-3e1f4dbb4db852a3278a883b3f599664e5705de3.zip
document HTML::Selector's :has(string) pseudo class
Diffstat (limited to 'actionpack/lib/action_controller/vendor')
-rw-r--r--actionpack/lib/action_controller/vendor/html-scanner/html/selector.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/vendor/html-scanner/html/selector.rb b/actionpack/lib/action_controller/vendor/html-scanner/html/selector.rb
index 0fe2e6d1a6..1eadfc0390 100644
--- a/actionpack/lib/action_controller/vendor/html-scanner/html/selector.rb
+++ b/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)