What is the difference between the two declarations and will one (or has one) been discontinued?
<div data-dojo-type="dijit.Dialog" data-dojo-props="title:'Confirm Deletion'">
...
<div dojoType="dijit.Dialog" title="Confirm Deletion">
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
data-is an an HTML5 notation. Technically speaking<div dojoType="dijit.Dialog" title="Confirm Deletion">is invalid HTML, because the HTML spec does not define the attributesdojoTypeand other attributes that are properties on widgets. The result is that when you open files in an html editor, the html editor will highlight the markup as invalid.The HTML5 spec recognized the use of custom attributes and added
data-attributes. HTML5 editors will accept any attribute begininnng withdata-as valid.Going forward, you should use the HTML5 notation.