added EventTarget support for text nodes too