Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#1933 closed defect (invalid)

IFrameIO text/plain textarea

Reported by: Grzegorz Tańczyk Owned by: James Burke
Priority: high Milestone:
Component: IO Version: 0.4
Keywords: Cc:
Blocked By: Blocking:


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)

comment:1 Changed 14 years ago by James Burke

Milestone: 0.4.1
Owner: changed from alex to James Burke

comment:2 Changed 14 years ago by James Burke

Resolution: invalid
Status: newclosed

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.

comment:3 Changed 13 years ago by (none)

Milestone: 0.4.1

Milestone 0.4.1 deleted

Note: See TracTickets for help on using tickets.