Bug Tracker

Opened 9 years ago

Last modified 8 years ago

#8405 closed enhancement

Enhance jQuery.sub to work in its own window/document — at Initial Version

Reported by: musicisair Owned by:
Priority: low Milestone: 1.7
Component: core Version: 1.5.1
Keywords: Cc:
Blocked by: Blocking:

Description

It would be nice if we could pass a DOM Window or Document to jQuery.sub in order to force selector context to any document we want WITHOUT having to $(document).find("selector") or $("selector", document)

Basically, we could then copy jQuery into an iframe or window (window.open) and execute it in its own context without the cost of loading and initializing.

In certain scenarios I could see how support tests may need to be re-run if the document-mode isn't the same.

---

On a side note: any hints on to implementing this right now as a plugin would be much appreciated.

Change History (0)

Note: See TracTickets for help on using tickets.