← Back to team overview

mahara-contributors team mailing list archive

[Bug 1815128] [NEW] Mathjax in user name on profile page is not updating <title> tag

 

Public bug reported:

Eg If I have MathJax turned on and have 'displayname' for a user set to:
\(\beta \alpha \delta \varsigma \pi \rho \)

When I visit their profile page I see their name displayed as βαδςπρ in
page <h1> tag but the browser <title> still shows as  \(\beta \alpha
\delta \varsigma \pi \rho \) and makes things look broken

The MathJax is unable to update the <title> tag as it does it's magic
with inserting <div> stuff.

But we can update the title tag with an approximation of what is wanted
- eg for Greek letters they tend to exist in the font so we can scrape
them from the page a apply them to the title.

For things like mathematical notations like square root we can't as they
are made up by css tricks

So I'll add a bit of code to try and update the <title> tag so it looks
less broken

** Affects: mahara
     Importance: Medium
         Status: In Progress

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1815128

Title:
  Mathjax in user name on profile page is not updating <title> tag

Status in Mahara:
  In Progress

Bug description:
  Eg If I have MathJax turned on and have 'displayname' for a user set
  to: \(\beta \alpha \delta \varsigma \pi \rho \)

  When I visit their profile page I see their name displayed as βαδςπρ
  in page <h1> tag but the browser <title> still shows as  \(\beta
  \alpha \delta \varsigma \pi \rho \) and makes things look broken

  The MathJax is unable to update the <title> tag as it does it's magic
  with inserting <div> stuff.

  But we can update the title tag with an approximation of what is
  wanted - eg for Greek letters they tend to exist in the font so we can
  scrape them from the page a apply them to the title.

  For things like mathematical notations like square root we can't as
  they are made up by css tricks

  So I'll add a bit of code to try and update the <title> tag so it
  looks less broken

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1815128/+subscriptions


Follow ups