Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#11829 closed enhancement (fixed)

Declaration: support HTML5 friendly syntax

Reported by: bill Owned by: bill
Priority: high Milestone: 1.6
Component: Dijit Version: 1.5
Keywords: Cc:
Blocked By: Blocking:


In line w/the parser etc. changes Declaration should also support HTML5 syntax. Specifically:

<script type='dojo/method' data-dojo-event='myHandler'>

in addition to the old:

<script type='dojo/method' event='myHandler'>

[22951] actually checked in a test for this, but it doesn't work (yet).

Change History (2)

comment:1 Changed 11 years ago by bill

Resolution: fixed
Status: newclosed

(In [22963]) Support <script type='dojo/method' data-dojo-event='myHandler'> and <script type='dojo/connect' data-dojo-event='myHandler'> syntax for Declaration.

The code is a bit convoluted due to apparent dojo.query() bugs with dashes (or at least with "data-dojo-event").

Fixes #11829 !strict.

comment:2 Changed 11 years ago by bill

(In [22965]) Tweaks to get both Declaration tests (old style and new style) working when run from runTests.html, refs #11829 !strict.

Note: See TracTickets for help on using tickets.