Opened 9 years ago

Closed 9 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)

test1.html (166 bytes) - added by hengly 9 years ago.
test_Editor.html (1.1 KB) - added by hengly 9 years ago.
error.jpg (28.7 KB) - added by hengly 9 years ago.

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by hengly

Attachment: test1.html added

Changed 9 years ago by hengly

Attachment: test_Editor.html added

Changed 9 years ago by hengly

Attachment: error.jpg added

comment:1 Changed 9 years ago by bill

Cc: Jared Jurkiewicz added

The editor doesn't support being initialized while hidden. Probably we already have other tickets for that, closed as wontfix. Jared?

comment:2 Changed 9 years ago by Jared Jurkiewicz

Resolution: wontfix
Status: newclosed

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.

Note: See TracTickets for help on using tickets.