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

[REG: 5->6] QDomDocument now drops standalone attribute

    XMLWordPrintable

Details

    • 21
    • 11f14c3b0 (dev), 032709a94 (6.5), e2b36e666 (tqtc/lts-6.2)
    • Foundations Sprint 80

    Description

      Attached example includes standalone="no" in Qt 5 in the output, but not in Qt 6. The reason seems to be:

      in qtbase/src/xml/dom/qdomhelpers.cpp:

      if (reader->isStandaloneDocument()) {
           value += QLatin1String(" standalone='yes'");
      } else {
          // TODO: Add standalone='no', if 'standalone' is specified. With the current
          // QXmlStreamReader there is no way to figure out if it was specified or not.
          // QXmlStreamReader needs to be modified for handling that case correctly.
      }
      

      Attachments

        For Gerrit Dashboard: QTBUG-111200
        # Subject Branch Project Status CR V

        Activity

          People

            axelspoerl Axel Spoerl
            poikelin Joni Poikelin
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes