Opened 12 years ago
Closed 12 years ago
#7308 closed defect (invalid)
dojo.io.script.attach errors with iframe under Safari
Reported by: | joe1chen | Owned by: | anonymous |
---|---|---|---|
Priority: | high | Milestone: | 1.2 |
Component: | General | Version: | 1.1.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
When attaching a script to an iframe doc under Safari, the following fragment of code,
doc.getElementsByTagName("head")[0]
which is used to get the head, returns null. A working fix is to replace this with
doc.firstChild.childNodes[0]
Change History (2)
comment:1 Changed 12 years ago by
Milestone: | 1.2 → tbd |
---|
comment:2 Changed 12 years ago by
Milestone: | tbd → 1.2 |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Closing as invalid. If including a <head> tag does not resolve this for you, please reopen with a test case.
Note: See
TracTickets for help on using
tickets.
This seems to be an issue with the document inside the iframe? What are the contents of the iframe before getElementsByTagName is called? It is probably missing a head tag. If you add the head tag, does that work?