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

QDom: Document deviations from standard

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • Documentation, XML: DOM
    • None

    Description

      QDomDocument should explicitly list all deviations from the Level 1 and Level 2 standards, or the XML standard. Currently the only hint of deviations are in QDomDocument, which says:

      The QDom classes have a few issues of nonconformance with the XML specifications that cannot be fixed in Qt 4 without breaking backward compatibility.

      Known deviations:

      • QDomDocument::setContent() by default does ignore whitespace. The XML standard mandates though that "An XML processor MUST always pass all characters in a document that are not markup through to the application.". One needs to set QDomImplementation::setWhitespacePolicy(QDomImplementation::WhitespacePolicy::Preserve) to change that.
      • Furthermore, all QDomDocument::setContent() treats all Unicode whitespace characters as whitespace. The XML standard, however defines whitespace to be only (#x20 | #x9 | #xD | #xA): https://www.w3.org/TR/xml11/#NT-S .

      Attachments

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

        Activity

          People

            sonakur Sona Kurazyan
            kkohne Kai Köhne
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes