Browse files

added a 'notes' section for the UNQUOTED_ATTR_VALUE error.

  • Loading branch information...
toolness committed Apr 12, 2012
1 parent 42ead14 commit 85bcd95d41c4ffaafe6725d622001fc66548514f
Showing with 9 additions and 0 deletions.
  1. +9 −0 demo/spec.html
@@ -163,6 +163,15 @@ <h3>JavaScript Code</h3>
"start": 9
+ <h3>Notes</h3>
+ <p>The HTML5 specification actually allows unquoted attribute
+ values, so long as they don't have spaces in them. However,
+ this isn't commonly done outside of minifying HTML. Furthermore, by
+ complicating the standard, our predictions about the user's
+ intent also become ambiguous, which results in more cryptic
+ and confusing error messages. By choosing to enforce monotony, we
+ ease the learning process and provide more helpful
+ errors.</p>
<div class="test">
<script type="text/x-bad-html">

0 comments on commit 85bcd95

Please sign in to comment.