Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Fixed incorrect documentation for Event#findElement. #44

merged 1 commit into from

2 participants


No description provided.


Ugh. This used to return the document back in 1.5, but at some point we changed the implementation by accident, and then we put the new (accidental) behavior in our regression tests. Best to just change the docs at this point. Thanks!

@savetheclocktower savetheclocktower merged commit e93010f into sstephenson:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 23, 2012
  1. @leafo

    Fixed incorrect documentation.

    leafo authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 2 deletions.
  1. +1 −2  src/prototype/dom/event.js
3  src/prototype/dom/event.js
@@ -253,8 +253,7 @@
* its ancestor chain. If `expression` is not given, the element which fired
* the event is returned.
- * *If no matching element is found, the document itself (`HTMLDocument` node)
- * is returned.*
+ * *If no matching element is found, `undefined` is returned.*
* ##### Example
Something went wrong with that request. Please try again.