Ticket #6791 (closed defect: fixed)
dojo.withDoc not used in a number of places (breaks ie with foriegn dom node insertion)
| Reported by: | chrism | Owned by: | peller |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2 |
| Component: | General | Version: | 1.1.0 |
| Severity: | normal | Keywords: | |
| Cc: | sjmiles, bill |
Description
Dojo has context (window, document) switching function, such as dojo.withDoc(). But there are places which breaks the feature. This scenario worked back in 0.4.x, but has regressed.
For example:
- _Templated widget reuses cached template nodes and temporary node which are created once with "a document" and does not manage them "per document". - "document" is used, instead of "dojo.doc" or "node.ownerDocument", in some functions, such as dojo.getComputedStyle().
FF allows foreign nodes to be inserted into DOM tree, because of which this works to some extent in FF, but IE doesn't.
The attached patches provide fixes to some of the problems we've found.
Use case: an editor which uses a theme for the tool in the page, and the content area is an iframe with content in a different theme.
I'm working on a test case to illustrate these problems on ie. -Chris