douglascrockford/JSLint — pull request #145 by anaran (2013-06-03 17:11:07+00:00)
Title: Add function link_errors_to_source setting caret in source from error.

The function adds a click listener to each error cite which sets caret
in the source textarea and scrolls it into view (only when necessary).

Hello Douglas, here is my first try at integrating the functionality I suggested in
https://plus.google.com/u/0/114973624116584041537/posts/FkZPaDapNcZ

As you will quickly notice even I can tell it is not quite ready to be pulled in.

I am accessing via ___nodes___ in places and using addEventListener because I could not get the on method to work.

But it should be good enough for you to play with it and see whether you like the functionality and general implementation.

I tested it locally in an eclipse orion site I created from my local JSLint git clone.
All I have to do is place a copy of web_jslint.js in the same directory (which I made sure not to add to git).

Looking forward to your feedback what I need to fix, if you are interested to pull this feature in an improved form.

Regards,
Adrian