script comments

Twitter Updates


San Francisco PechaKucha Night
San Francisco IxDA


Going along with my switch to pure xhtml 1.1, I realized I also needed to get rid of the comments inside the script tags, since a UA is supposed to ignore anything surrounded by comments. This means that the old way of doing this:

<script type=”text/javascript”>
var loaded = false;

should really be done this way:

<script type=”text/javascript”>
var loaded = false;

Author: Peter Sheerin

Peter Sheerin is best known for the decade he spent as the Technical Editor of CADENCE magazine, where he was the acknowledged expert in Computer-Aided Design hardware and software. He has a long-standing passion for improving usability of software, hardware, and everyday objects that is always interwoven in his articles. Peter is available for freelance technical writing and product reviews, and is exploring career opportunities in interaction design. His pet personal project is exploring the best ways to harmonize visual, tactile, and audible symbols for improving the effectiveness of alerting systems.

Leave a Reply