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

responseXML.getElementsByTagName() is not implemented in QML (Qt Quick)

    XMLWordPrintable

Details

    Description

      responseXML.getElementsByTagName() is not implemented in ECMAScript of QML (Qt Quick)

      The code below results in the following error:

      .../qml/QtQuickTube/YoutubeDataReader.qml:37: TypeError: Result of expression 'xmlDoc.getElementsByTagName' [undefined] is not a function.

      ...
      xhr.open("GET",url,true);
      xhr.onreadystatechange = function() {
        if (xhr.readyState==4) {
          if (xhr.status==200) {
            var xmlDoc=xhr.responseXML;
            var txt="";
            var x=xmlDoc.getElementsByTagName("PARAM");
      ...
      

      related with bug QTBUG-13987, which "Will be done if it falls out of V8 integration, but otherwise not worth investment."

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            alhannin Aleksi Hänninen (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes