Currently, empty tags will be turned into self-closing tags (<.../>). However, in HTML, this is only supported for some tags, see https://html.spec.whatwg.org/multipage/syntax.html#start-tags point 6 (void and foreign elements). In some cases this may lead to invalid HTML which doesn't meet expected behavior. This example:
Currently, empty tags will be turned into self-closing tags (
<.../>
). However, in HTML, this is only supported for some tags, see https://html.spec.whatwg.org/multipage/syntax.html#start-tags point 6 (void and foreign elements). In some cases this may lead to invalid HTML which doesn't meet expected behavior. This example:will be read from the template, and in the end be rendered as
as XML supports self-closing tags in general, and therefore all empty tags will be converted.
Note that the change in
questionpy_sdk/webserver/question_ui.py:213
has not been tested.