zertosh / jquery-audit

jQuery Audit
MIT License
563 stars 26 forks source link

Jumps to the top #5

Closed mihai-vlc closed 10 years ago

mihai-vlc commented 10 years ago

When i have this extension enabled on the elements tab keeps jumping to the top if there are any changes in the dom caused by js.

You can test it here: http://flexslider.woothemes.com/

zertosh commented 10 years ago

Thanks for pointing it out.

I just pushed a fix to the Chrome Web Store. The issue was with the helper comment nodes for document and window. Turns out that when they're in a node that's an ancestor of <html>, that jumping happens.

I moved the helper nodes to be the first children of <html> instead, and also added a options page so you can turn them off.