Delete all invisible characters (whitespace) around that area, then give it another try.
I’ve seen that error in Safari when copy/pasting code. You can pick up some invalid (and unfortunately invisible) characters.
Used to happen to me a lot when copying from jsFiddle.
More Related Contents:
- Get the real width and height of an image with JavaScript? (in Safari/Chrome)
- Is it possible to display a custom message in the beforeunload popup?
- Chrome and Safari XSLT using JavaScript
- Export html table data to Excel using JavaScript / JQuery is not working properly in chrome browser
- jqGrid does not render correctly in Chrome/Chrome Frame
- Jquery load() only working in firefox?
- Chrome Uncaught Syntax Error: Unexpected Token ILLEGAL [duplicate]
- Getting Error “Form submission canceled because the form is not connected”
- Prevent contenteditable adding on ENTER – Chrome
- jQuery scrollTop() doesn’t seem to work in Safari or Chrome (Windows)
- Chrome Extension how to send data from content script to popup.html
- Getting Chrome to prompt to save password when using AJAX to login
- AJAX request to local file system not working in Chrome? [duplicate]
- Refused to execute inline event handler because it violates CSP. (SANDBOX)
- How can I make window.showmodaldialog work in chrome 37?
- Prevent Address-Bar hiding in mobile Browsers
- Anchor tag download attribute not working :Bug in Chrome 35.0.1916.114
- Disable elastic scrolling in Safari [duplicate]
- Proper way to reset a GIF animation with display:none on Chrome
- jQuery in Chrome returns “block” instead of “inline”
- Can’t trigger click with jQuery in a Chrome extension
- In a Chrome Extension content script, must I wait for document.ready before processing the document?
- Function as Google Chrome bookmark
- How can I stop jQuery.ajax() from logging failures to the console?
- tabs.executeScript – passing parameters and using libraries?
- Choppy/Laggy scroll event on Chrome and IE
- Force hide address bar in Chrome on Android
- XMLHttpRequest; Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource [duplicate]
- Cropping with drawImage not working in Safari
- Circumventing Chrome Access-control-allow-origin on the local file system?