← Back to team overview

touch-packages team mailing list archive

[Bug 1481206] Re: "h f" messes up formatting of search suggestions

 

The highlightTerms() function returns the following string for "h
factor":

    <html><<font color="#752571">f</font>ont color="#752571">h</<font
color="#752571">f</font>ont> <font color="#752571">f</font>actor</html>

The problem is that the function does the highlighting in several
passes, iterating over the list of terms to highlight. In that specific
case, "h" is first highlighted, then "f", resulting in the following
sequence:

 * after highlighting "h": <font color="#752571">h</font> factor
 * after highlighting "f": <<font color="#752571">f</font>ont color="#752571">h</<font color="#752571">f</font>ont> <font color="#752571">f</font>actor

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to webbrowser-app in Ubuntu.
https://bugs.launchpad.net/bugs/1481206

Title:
  "h f" messes up formatting of search suggestions

Status in webbrowser-app package in Ubuntu:
  Triaged

Bug description:
  Regardless of the current search engine selected, it appears this string ("h f") messes up the formatting of search suggestions (as well as entries from history and bookmarks).
  I’m seeing entries such as:

    font color="#752571">hfont> factor

  (the actual suggestion returned by google is "h factor")

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/webbrowser-app/+bug/1481206/+subscriptions


References