XSL и W3C

#
XSL и W3C
Добрый день!
Подскажите, как подружить шаблоны XSL с валидатором W3C, который считает ошибкой слеш в одиночных тегах  <img> и <input> ?
iNikSite - дизайн и фронтенд разработка
Модератор
#
Re: XSL и W3C
https://stackoverflow.com/a/7854998
A self-closing div will not validate. This is because a div is a normal element, not a void element.
According to the HTML5 spec, tags that cannot have any contents (known as void elements) can be self-closing*. This includes the following tags:
area, base, br, col, embed, hr, img, input, link, meta, param, source, track, wbr

https://html.spec.whatwg.org/multipage/syntax.html#void-elements
There are six different kinds of elements: void elements, the template element, raw text elements, escapable raw text elements, foreign elements, and normal elements.
Void elements area, base, br, col, embed, hr, img, input, link, meta, source, track, wbr
Авторизация