- From: Jukka K. Korpela <jukkakk@gmail.com>
- Date: Tue, 3 Dec 2019 14:57:12 +0200
- To: Alfred Cellier <al@cellier.org>
- Cc: W3C WWW Validator <www-validator@w3.org>
- Message-ID: <CAGHxYa4+YsDU8Pa9F9urXdO6DDLBzh8n-e6a6-HLms+6Kn17DA@mail.gmail.com>
Alfred Cellier (al@cellier.org) wrote: > > In 2018 I had checked this page as valid HTML5. > > Today, not so much. > Which page? You did not specify any URL in your message. Anyway, HTML5 is a moving target. Begging “valid HTML5” means just satisfying the requirements imposed in some document titled HTML5 at some moment of time. It may and will change without prior or posterior notice. > But also the Nu Checker keeps reporting 2 errors in line 56, in code that > is not even on my web page. > It is on your page, namely the HTML document sent by a server in response to a request for a URL from user agent (browser, validator, some other). How it gets there is internal to the server and cannot be known by the validator; it analyzes what it gets. > > My line 56 is – > </body> > Nu Checker line 56 is – > <!-- Start McAfeeSecure Code --><script type="text/javascript" src="// > cdn.ywxi.net/js/1.js" async="true"></script><!-- End McAfeeSecure Code > --></BODY>↩ > > which throws this ERROR and warning – > Yes, one error and one warning, not two errors > > 1. Error: Bad value true for attribute async on element script > <https://html.spec.whatwg.org/multipage/#the-script-element>. > From line 56, column 33; to line 56, column 105 > <https://validator.w3.org/nu/?doc=https%3A%2F%2Fcellier.org%2Fbrownianmotion.org%2Findex.html&showsource=yes#l56c105> > e Code --><script type="text/javascript" src="//cdn.ywxi.net/js/1.js" > async="true"></scri > > The rules for the so-called Boolean attributes have varied from one HTML version to another, and also between HTML5 versions. You should omit the attribute value and the equals sign before it, using just async Alternatively, if you wish to make the document XML conformat (“XHTML HTML5”), use an attribute value that equals the attribute name: async="async" > > 1. Warning: The type attribute is unnecessary for JavaScript resources. > > So it's a warning, and you can just ignore it. If the McAfeeSecure code is not needed for your purposes, remove the code (in your file somewhere) that causes it to me inserted, or otherwise present the insertion. If you cannot affect it, just relax. (Well, you could complain to the company that produces the inserted code, but thatäs probably futile.) Jukka, http://jkorpela.fi
Received on Tuesday, 3 December 2019 12:57:28 UTC