Ticket #5197 (new defect)
(Firefox only) hidden iframes can throw exceptions when testing dojo._isBodyLtr()
| Reported by: | guest | Owned by: | peller |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.3 |
| Component: | Dijit | Version: | 1.0 |
| Severity: | normal | Keywords: | bidi |
| Cc: | hwcdl@…, stenduncan@…, alex |
Description
the dojo._isBodyLtr() is added to my custom code base when I build (presumably by dijit), i'm not sure where this added:
if(!dojo._hasResource["dijit._base.bidi"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
dojo._hasResource["dijit._base.bidi"] = true;
dojo.provide("dijit._base.bidi");
// summary: applies a class to the top of the document for right-to-left stylesheet rules
dojo.addOnLoad(function(){
if(!dojo._isBodyLtr()){
dojo.addClass(dojo.body(), "dijitRtl");
}
});
In anycase when this is called the subsequent dojo._bodyLtr = dojo.getComputedStyle(dojo.body()).direction == "ltr" returns null on an iframe that is wrapped in a hidden div (see attached test files).
Attachments
Change History
Note: See
TracTickets for help on using
tickets.