Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#577 closed defect (fixed)

IframeIO transport does not handle mimetype text/html well

Reported by: James Burke Owned by: James Burke
Priority: high Milestone:
Component: Core Version: 0.2
Keywords: iframeIO iframe transport IframeTransport Cc:
Blocked By: Blocking:

Description

Using "text/html" for the mimetype kw argument for the dojo.io.bind() request (using iframe transport):

In IframeIO.js, this.iframeOnload function treats the text/html case as the else case and tries to use ifw.innerHTML was the return data value. However, this value seems to return undefined. This happened in FF 1.5 and MSIE 6.0. Also, the else case comment indicates that this else is for text/plain.

Perhaps using dojo.io.iframeContentDocument(_this.iframe) and getting documentElement.innerHTML might work (not sure if this would work for Safari). I'm also not sure if that will work out for text/plain documents.

Change History (3)

comment:1 Changed 13 years ago by James Burke

Milestone: 0.3.1
Owner: changed from anonymous to James Burke
Status: newassigned

comment:2 Changed 13 years ago by James Burke

Resolution: fixed
Status: assignedclosed

This should be fixed in SVN r4196. If text/html is used, then the document object is returned. See tests/io/test_IframeIO.html.html for a test case. (Having trouble with Safari, but that is bug #672).

comment:3 Changed 12 years ago by (none)

Milestone: 0.3.1

Milestone 0.3.1 deleted

Note: See TracTickets for help on using tickets.