- From: Michael[tm] Smith <mike@w3.org>
- Date: Thu, 19 Jan 2017 04:17:50 +0900
- To: Eloito <eloigonzalez@hotmail.com>
- Cc: "www-validator@w3.org" <www-validator@w3.org>
- Message-ID: <20170118191750.hfvfq62foc24z6ys@sideshowbarker.net>
Eloito <eloigonzalez@hotmail.com>, 2017-01-18 11:27 +0000: > Archived-At: <http://www.w3.org/mid/DB6PR0101MB252072A0F982E5DECF07B855CE7F0@DB6PR0101MB2520.eurprd01.prod.exchangelabs.com> > > I am currently trying to validate a HTML5 file which contains SVG images. > > Those SVG have custom attributes which are not validated by the W3C html5 > validator. The note:id is then attacked by Js with DOM. ... > Errors and warning are the following: > > Warning: Attribute note:id is not serializable as XML 1.0. > > Error: Attribute note:id not allowed on element rect at this point. > > <rect note:id="0" x="0" class="piano__key piano__key--natural" width="40" height="200"/> ... > Is there any solution to obtain the validation? There is no solution to “obtain validation” (see the explanation below). Thar error about that “note:id” is because it’s not a standard SVG attribute and the checker has no way to distinguish it from, say, a misspelling of some attribute that is a standard SVG attribute. If you want to *suppress* that error and warning, you can use the *Message filtering* feature of the HTML Checker UI at https://validator.w3.org/nu/ You can’t “obtain validation” from that tool (the current W3C HTML Checker), because it’s not actually a validator. By that I mean specifically it does not give you a binary pass/fail “Your document validates” result. Instead it’s just intended to help you catch mistakes you might otherwise miss. You’re free to ignore any messages it emits if you don’t consider them mistakes, and encouraged to use the *Message filtering* feature to suppress any messages you care to. —Mike -- Michael[tm] Smith https://sideshowbarker.net/
Received on Wednesday, 18 January 2017 19:18:19 UTC