Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#16434 closed defect (wontfix)

ContentPane can't parse the href page correctly in IE7/IE8(dojo 1.8.1)

Reported by: jmars Owned by:
Priority: undecided Milestone: tbd
Component: Dijit Version: 1.8.1
Keywords: Cc:
Blocked By: Blocking:

Description

I met a problem when I used dijit.layout.ContentPane? and dojox.layout.ContentPane? in IE7/IE8.(works well in Firefox and IE9+) ContentPane? can't parse the <script> in the other widgets.

The following is the testing code:

test.html

<body class="claro">
<div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="href:'test-script.html'"></div>
<div data-dojo-type="dojox/layout/ContentPane" data-dojo-props="href:'test-script.html',executeScripts:true"></div>
</body>
</html>

test-script.html

<div data-dojo-type="dijit/form/Button" data-dojo-props="label:'click me'">
<script type="dojo/on" data-dojo-event="click">
alert("hello");
</script>
</div>

run test.html in IE7/IE8, The button doesn't work when you click it. It seems that the <script> has not been parsed.

Change History (2)

comment:1 Changed 7 years ago by bill

Component: GeneralDijit
Resolution: wontfix
Status: newclosed

Yes, unfortunately IE is quirky this way about <script> tags at the top of the file, pretending they aren't there. There's nothing we can do to fix it, so you'll need to work around it. For example, sticking <span>hi</span> at thetop of your test-script.html fixes the problem.

comment:2 in reply to:  1 Changed 7 years ago by jmars

Replying to bill:

Yes, unfortunately IE is quirky this way about <script> tags at the top of the file, pretending they aren't there. There's nothing we can do to fix it, so you'll need to work around it. For example, sticking <span>hi</span> at thetop of your test-script.html fixes the problem.

It works. Thank you. I think there wasn't such a problem with dojo 1.6 maybe. Anyway, wish no one uses IE7&8 asap.

Note: See TracTickets for help on using tickets.