W3C home > Mailing lists > Public > www-validator@w3.org > October 2022

Re: Warning about self-closing syntax in embedded SVG within HTML file

From: Michael[tm] Smith <mike@w3.org>
Date: Sat, 1 Oct 2022 20:35:45 +0900
To: Graham Bell <graham@editeur.org>, "www-validator@w3.org" <www-validator@w3.org>
Message-ID: <YzgmEZRfU4d8wbHF@w3.org>
For the record here, I want to note that in an earlier message, I misspoke
about something:

> Archived-At: <https://www.w3.org/mid/YzK2gHeFk1iFFnL3@w3.org>
> ...
> For SVG in HTML, just <path d="M 5 35 l 60 -25 10 5 5 10"> — that is, just
> the start tag, with no closing slash, and no end tag — should work.

That’s simply not true. Even for SVG in HTML, that path element would
either need for its start tag to have a slash/solidus before the closing
angle bracket — <path d="M 5 35 l 60 -25 10 5 5 10"/> — or it would need
to have a </path> end tag.

  –Mike

-- 
Michael[tm] Smith https://people.w3.org/mike

Received on Saturday, 1 October 2022 11:35:50 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 1 October 2022 11:35:50 UTC