Opened 11 years ago

Closed 11 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 11 years ago by James Burke

Milestone: 1.2tbd

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?

comment:2 Changed 11 years ago by dylan

Milestone: tbd1.2
Resolution: invalid
Status: newclosed

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.