renyard / validity

A Google Chrome extension for validating HTML.
https://chrome.google.com/webstore/detail/bbicmjjbohdfglopkidebfccilipgeif
Apache License 2.0
90 stars 22 forks source link

javascript error returned when quotes are missing #14

Closed meganf closed 10 years ago

meganf commented 12 years ago

The following error message comes back when quotes are missing from an attribute value in the HTML5 doctype

Error in event handler for 'undefined': SyntaxError: Unexpected string at _logMessages (chrome-extension://bbicmjjbohdfglopkidebfccilipgeif/validity.js:106:8) at chrome-extension://bbicmjjbohdfglopkidebfccilipgeif/validity.js:119:6 at [object Object].dispatch (extensions/event.js:179:28) at extensions/renderer_extension_bindings.js:99:24 at [object Object].dispatch (extensions/event.js:179:28) at Object. (extensions/renderer_extension_bindings.js:164:22)

The message when validating via w3c.validator.org is: expected '"' or "'" (found w) <li class=wdj><a href="http://webdeveloperjuice.com" rel="external">Web D…

skamansam commented 12 years ago

This also happens for the following tag:

w3c validator says: Bad value 0; URL='/errors/noscript' for attribute content on element meta: Expected an unquoted IRI reference, but saw ' instead.

NOTE: Removing these quotes fixes the issue, but Validity should gracefully handle these errors. Maybe this is a general problem when parsing quotes in attribute values?