Opened 8 years ago

Last modified 8 years ago

#15809 closed defect

loader exception when dojo loaded in body — at Version 1

Reported by: bill Owned by: Rawld Gill
Priority: undecided Milestone: 1.9
Component: Loader Version: 1.7.3
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by bill)

On the line:

insertPoint.insertBefore(node, sibling);

Both chrome and FF get a NOT_FOUND_ERR: DOM exception 8. insertPoint is <body>, and sibling is

<script type="dojo/require">
	lang: "dojo/_base/lang",
	ItemFileReadStore: "dojo/data/ItemFileReadStore",
	BorderContainer: "dijit/layout/BorderContainer",
	ContentPane: "dijit/layout/ContentPane",
	Editor: "dijit/Editor"
</script>

Why do insertPoint and sibling have those weird values? Because the test tries to be clever by putting the <script src="dojo.js"> at the end of <body> rather than in <head>.

I'm still not sure why the test gets that error though, or whether it's a valid test, but please take a look.

Change History (2)

Changed 8 years ago by bill

Attachment: editor.html added

comment:1 Changed 8 years ago by bill

Description: modified (diff)

The issue could possibly be that the <script type="dojo/require"> gets deleted from the document at the same time that the loader is trying to inject new <script> tags into the document.

Note: See TracTickets for help on using tickets.