IFrameIO text/plain textarea
I don't know why in IFrameIO onLoad function You are looking for textarea element. In IE6 You should look for PRE element, but in Mozilla there is only BODY element. What do You think about this fix of this problem:
}else{ // text/plain
try {
value = ifd.getElementsByTagName("textarea")[0].value;
} catch(e) {
try {
value = ifd.getElementsByTagName("pre")[0].innerHTML;
} catch(e) {
value = ifd.getElementsByTagName("body")[0].innerHTML;
} }
Change History (3)
Milestone: |
→ 0.4.1
|
Owner: |
changed from alex to James Burke
|
Resolution: |
→ invalid
|
Status: |
new →
closed
|
I don't quite understand what you mean by there being a PRE element in MSIE and a body element in Firefox. Can you provide more information? Also note that we need something that works for Safari and Opera.
It seems like you are just replacing one arbitrary element (textarea) for another (pre or body). But I would not be surprised if I'm missing something. I'm going to close the bug for now unless you can give more info.