Page MenuHomePhabricator

Console warning in Firefox: Empty string passed to getElementById()
Closed, ResolvedPublic

Description

From document.getElementById(location.hash.slice(1))||[]

Example: https://sv.wikipedia.org/w/index.php?title=Anv%C3%A4ndare:Nirmos/common.js&oldid=48800646

Event Timeline

Esanders renamed this task from Empty string passed to getElementById() to Console warning in Firefox: Empty string passed to getElementById().Jan 25 2021, 10:28 PM
Esanders subscribed.

I assume you are talking about the console warning that appears in Firefox?

Change 658448 had a related patch set uploaded (by Esanders; owner: Esanders):
[mediawiki/extensions/SyntaxHighlight_GeSHi@master] Avoid console warning when hash is empty

https://gerrit.wikimedia.org/r/658448

Change 658448 merged by jenkins-bot:
[mediawiki/extensions/SyntaxHighlight_GeSHi@master] Avoid console warning when hash is empty

https://gerrit.wikimedia.org/r/658448