Uploaded image for project: 'Qt Project Website'
  1. Qt Project Website
  2. QTWEBSITE-1115

Seach - Refactor JavaScript to Avoid Direct HTML

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • None
    • None

    Description

      The existing solution for processing search terms uses the escapeHTML() function directly within JavaScript, which, while mitigating certain risks, still employs the potentially hazardous practice of manipulating HTML code directly through innerHTML.

      Recommendations:

      • Refactor the relevant parts of the JavaScript code to construct and manage DOM nodes properly instead of manipulating innerHTML.

      Search is currently on the Google API side mostly.

      Attachments

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

        Activity

          People

            anssi_makela Anssi Mäkelä
            anssi_makela Anssi Mäkelä
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes