Closed wrksx closed 9 years ago
Same kind of error validating a localhost site:
Error in event handler for (unknown): SyntaxError: Unexpected identifier
at _logMessages (chrome-extension://bbicmjjbohdfglopkidebfccilipgeif/validity.js:124:8)
at chrome-extension://bbicmjjbohdfglopkidebfccilipgeif/validity.js:140:8
at messageListener (extensions::messaging:343:9)
at Function.target.(anonymous function) (extensions::SafeBuiltins:19:14)
at Event.dispatchToListener (extensions::event_bindings:386:22)
at Event.dispatch_ (extensions::event_bindings:371:27)
at Event.dispatch (extensions::event_bindings:392:17)
at dispatchOnMessage (extensions::messaging:307:22) extensions::event_bindings:375
Event.dispatch_ extensions::event_bindings:375
Event.dispatch extensions::event_bindings:392
dispatchOnMessage
Probably the error is caused by the fact I had this error in the code: ' in an unquoted attribute value. Probable causes: Attributes running together or a URL query string in an unquoted attribute value. (W3C validator)
I had this error showing up when trying to validate my website :
Error in event handler for 'undefined': Unexpected identifier SyntaxError: Unexpected identifier at _logMessages (chrome-extension://bbicmjjbohdfglopkidebfccilipgeif/validity.js:124:8) at chrome-extension://bbicmjjbohdfglopkidebfccilipgeif/validity.js:140:8 at miscellaneous_bindings:288:9 at chrome.Event.dispatchToListener (eventbindings:387:21) at chrome.Event.dispatch (event_bindings:373:27) at chrome.Event.dispatch (event_bindings:393:17) at Object.chromeHidden.Port.dispatchOnMessage (miscellaneous_bindings:254:22)
The extension was working just fine with the old doctype :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Trying to replace it with the (simpler) html5 one gave me the error : Not sure the error is related to the doctype itself, but when coming back to the old doctype the extension works again. The site is on localhost, I wasn't able to reproduce the issue on any 'on-line' website (even on html5 ones).