fixed empty element attribute issue
fixed bad support of standard html event callbacks