is it possible to detect inline event handlers

Bug reports and enhancement requests
Post Reply
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

is it possible to detect inline event handlers

Post by al_9x »

so as not to show the scriptless icon? I guess it's probably not worth walking the dom yourself, but gecko knows if there are events handlers registered, seems it should be possible to query it.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4
User avatar
Giorgio Maone
Site Admin
Posts: 9527
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: is it possible to detect inline event handlers

Post by Giorgio Maone »

No, there's no sane way to do that. Furthermore, if JS is disabled on the page no event handler gets registered, so you'd be left with the DOM anyway.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4
Post Reply