#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 16 years ago by
Milestone: | → 0.3.1 |
---|---|
Owner: | changed from anonymous to James Burke |
Status: | new → assigned |
comment:2 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
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).