Skip to content

Commit

Permalink
added a 'notes' section for the UNQUOTED_ATTR_VALUE error.
Browse files Browse the repository at this point in the history
  • Loading branch information
toolness committed Apr 12, 2012
1 parent 42ead14 commit 85bcd95
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions demo/spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,15 @@ <h3>JavaScript Code</h3>
"start": 9
}
</script>
<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>
<div class="test">
<script type="text/x-bad-html">
Expand Down

0 comments on commit 85bcd95

Please sign in to comment.