Opened 10 years ago
Closed 10 years ago
#12987 closed defect (wontfix)
null reference issue for dojo editor on FireFox 4(Caused by getComputedStyle)
Reported by: | hengly | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | tbd |
Component: | Editor | Version: | 1.6.1 |
Keywords: | dojo, editor | Cc: | Jared Jurkiewicz |
Blocked By: | Blocking: |
Description
Summary: test1.html cotains a iframe,the iframe is hiddened.iframe's src is set to test_Editor.html.
steps:
1.run the test1.html on Firefox
Expected: There is no javascript error. Actual: It call the s is null javascript error.
It works fine on ie.I found the issue caused by the function in dojo,
gcs = function(node){
return node.nodeType == 1?node.ownerDocument.defaultView.getComputedStyle('node',null):{};
}
The node.ownerDocument.defaultView.getComputedStyle('node',null) will get a null reference when the iframe is hiddened.
Attachments (3)
Change History (5)
Changed 10 years ago by
Attachment: | test1.html added |
---|
Changed 10 years ago by
Attachment: | test_Editor.html added |
---|
Changed 10 years ago by
comment:1 Changed 10 years ago by
Cc: | Jared Jurkiewicz added |
---|
comment:2 Changed 10 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
It's a limitation of using an iframe design. You can't initialize it when they're hidden in various browsers. This is documented behavior:
http://dojotoolkit.org/reference-guide/dijit/Editor.html#dijit-editor
Second listed limitation.
The editor doesn't support being initialized while hidden. Probably we already have other tickets for that, closed as wontfix. Jared?