As the title says: the
Drupal.behaviors.AJAX.attach() method in
misc/ajax.js doesn't properly use the
context parameter when creating jQuery objects. It is my understanding, that the context should always be used in those cases, and I don't really know why it isn't there.
Since the JS code checks for the
ajax-processed class, this will usually not cause any errors, I think – but I currently have a use case where I want to attach behaviors to DOM nodes that aren't currently inside the normal document tree – and thus aren't found if
context is ignored.
So, I wanted to know whether there's an actual reason to not use
context there. And, if there isn't, it would of course be great if we could fix this.