Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-50883

QXmlStreamWriter: Be able to write html5 compliant end elements

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.5.1
    • None

      Currently when the QXmlStreamWriter writes an end element while the previously written element was start element (tag is empty), it automatically writes "/>", making a self-closing tag.

      Self-closing tags are in html5 acceptable only for void elements (area, base, br, col, command, embed, hr, img, input, keygen, link, meta, param, source, track, wbr).

      My suggestion is to add functionality for setting QXmlStreamWriter to html5 compliant mode, which would write end tags ("></ELEMENT NAME>") for non void empty elements.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            thiago Thiago Macieira
            martin_chvatal Martin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes