How do I get Visual Studio 2017 to validate <script> tags in source code with CORS attributes?
Okay, this is an annoyance rather than a life or death problem! I am working on a website which uses externally hosted scripts in some of its pages. The script tags have CORS attributes (integrity and crossorigin). Visual Studio is validating the code against the HTML5 schema. So Visual Studio is picking these up as warnings in its error list and underlining the code with green squiggly lines.
I know I can just ignore them, or turn validation off. I'd prefer to have them recognised as valid markup. Is there any way that I can do that?