Skip to main content
wcspaulding1
Participating Frequently
September 17, 2017
Answered

async error displayed in Output; How do I get rid of it?

  • September 17, 2017
  • 3 replies
  • 777 views

An error is displayed in Output stating that async needs a value, which isn't true. Async can be used by itself. How do I get rid of this error. I looked under Preferences > Linting for CSS, HTML, and JS, but I could not find anything regarding this error. Ditto for itemscope and defer needing a value.

This topic has been closed for replies.
Correct answer pziecina

Ignore the errors. Such false positive errors are why i, (and a number of others i know) turn linting off.

linting may be updated in the next release of Dw, as it is outdated in its recognition of modern html/css and javascript.

3 replies

Jon Fritz
Community Expert
Community Expert
September 19, 2017

As Paula mentions, the Linter built into DW is less than ideal. It doesn't show just errors, it also shows random items its developers considered to be errors or code inconsistencies.

Turning it off and using an online html validator when you preview in browser is a valid (I would say better) option.

However, you can turn off that particular error alone (and keep other error notices) by following these steps...

1. Go to Edit > Preferences > Linting
2. Click HTML to highlight it
3. Click Edit & Apply changes
4. On line 8 turn the "attr-value-not-empty" setting to false
5. Save and close the file

One side effect of doing this is all attributes will then be allowed to be "valueless" without getting an error notice from the line numbers in DWs Code View.

If you use the Validation tool under the File > Validate > Current Document (W3C), or online at http://validator.w3.org/nu, any true "empty attribute error" will still be picked up though.

Nancy OShea
Community Expert
Community Expert
September 17, 2017

I ignore it.  Or you can disable code Linting in Preferences.

Nancy O'Shea— Product User & Community Expert
pziecina
pziecinaCorrect answer
Legend
September 17, 2017

Ignore the errors. Such false positive errors are why i, (and a number of others i know) turn linting off.

linting may be updated in the next release of Dw, as it is outdated in its recognition of modern html/css and javascript.