diff options
author | misfo <tedwardo2@gmail.com> | 2011-04-23 10:15:38 -0500 |
---|---|---|
committer | misfo <tedwardo2@gmail.com> | 2011-04-23 10:15:38 -0500 |
commit | 3e1f4dbb4db852a3278a883b3f599664e5705de3 (patch) | |
tree | 4423fb97dff0710d62982e27ca89a8c09071133b /actionpack/lib/action_controller/vendor | |
parent | 0887385d8e18acda857fccc7f5c97acfec129902 (diff) | |
download | rails-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.rb | 2 |
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) |