Open jhursty opened 5 months ago
Oh by the way a
is in the same boat, but I noticed it earlier because the preview via tooling complained.
Don't <img/>
and <a></a>
comply with both HTML5 and XML syntax?
Yes, <img/>
works. I was perhaps confused because <a/>
does not. I think I may have normalized <img/>
to <img></img>
to be congruent with <a></a>
. Since we have a tooling layer, is there any way we could address this so that either form works for either case? Would be great to use <a/>
.
<a/>
does not conform with HTML5 AFAIK
The guide says:
but https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#technical_summary says (near the end:)
XML does not allow unclosed tags, so it is not possible to comply with both requirements.
Chrome and Firefox are fine with closed
img
, so I did not notice until the CI said:If it is possible to support well-formed XML that would be the preferred solution. Doing so would make using standard XML validation tools more accessible during massive cut-and-paste development.