Opened 9 years ago

Closed 9 years ago

#11555 closed defect (invalid)

dojo/method can't catch onShow event in Google Chrome

Reported by: stafamus Owned by: anonymous
Priority: high Milestone: tbd
Component: Parser Version: 1.5
Keywords: Chrome, onShow, dojo/method Cc:
Blocked By: Blocking:

Description (last modified by bill)

Chrome version: 5.0.375.125 beta Problem: The below script can't run on Google Chrome, though it can run on Firefox 3.6.8, Opera 10.60 6386 and IE7. What Chrome does is, it prints the below text on the pane: console.log("abc pane entered..."); execute_a_function('lalala');

Here is the script:

<div dojoType="dijit.layout.AccordionPane?" title="abc" selected="false" style="background-color:#c0c0c0; margin:0px; padding: 2px; font-size:8px; overflow:hidden;" id="grammar-pane">

<script/type="dojo/method" event="onShow">

console.log("abc pane entered..."); execute_a_function('lalala');

</script>

This problem appears to be also on dojo 1.3. I did not try on any other version.

Change History (1)

comment:1 Changed 9 years ago by bill

Component: CoreParser
Description: modified (diff)
Resolution: invalid
Status: newclosed

That's invalid HTML it should be:

<script type="dojo/method"

not

<script/type="dojo/method"
Note: See TracTickets for help on using tickets.