Dojo Dijit and HTML5 in Real world applications/Dijit/Double and single quotes in HTML5 dijits: Difference between revisions

From PMISwiki
Jump to navigation Jump to search
No edit summary
 
Line 10: Line 10:


==References==
==References==
[[QM:Quality_manual/Work_instructions/JavaScript_coding_standard#HTML5_dijits|Coding standards for HTML5 dijits]]
* [[QM:Quality_manual/Work_instructions/JavaScript_coding_standard#HTML5_dijits|Coding standards for HTML5 dijits]]
* [http://dev.w3.org/html5/html-author/ Last official HTML5 draft: W3C Editor’s Draft 23 March 2009]
* [http://www.w3.org/TR/2011/WD-html5-author-20110809/HTML5 W3C HTML5 working draft]
 


[[Category:software development]]
[[Category:software development]]
[[Category:HTML5]]
[[Category:HTML5]]
[[Category:Dijit]]
[[Category:Dijit]]

Latest revision as of 00:49, 7 November 2011

HTML5 dijit

You must be very careful with the use of Double and single quotes in HTML5 dijits.

Especially if you get the text output from a database or user interface. All user inputs and database sources must be escaped both to the Java Script (\" and \') and for the HTML style: & q u o t ; and & # 0 3 9 ;(Remove the spaces between the charters).

Read about the solution here: Coding standards for HTML5 dijits

Verified in

IE 8, Firefox 3.6.22, Dojo 1.6.1

References