dom events: use bubbling events for our custom events

(integrated from trunk branch change 2ea91b8 by Todd Whiteman <toddw@activestate.com>)