Page MenuHomePhabricator

Uncaught TypeError: Cannot read property 'tagName' of null
Open, Needs TriagePublic

Description

This task is about the following error I encountered when trying to use the Reply tool at en.wiki: https://en.wikipedia.org/w/load.php?lang=en&modules=ext.discussionTools.init&skin=vector&version=1511j at line 24: Uncaught TypeError: Cannot read property 'tagName' of null

Behavior

  1. Add Ed's script for enabling the Reply tool to your common.js page
  2. Navigate to https://en.wikipedia.org/wiki/Wikipedia_talk:WikiProject_Black_Lives_Matter/July_2020
  3. Click the [ reply ] link

Expected

  1. ✅ Reply tool's text input area appears

Actual

4. ❗️ Notice the Reply tool's text input area does NOT appear and the following error is shown:

Event Timeline

ppelberg created this task.Jul 2 2020, 5:46 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 2 2020, 5:46 AM
  1. Add Ed's script for enabling the Reply tool to your common.js page

What is this script, what line should be added to common.js? Is it required to add it to common.js to reproduce the bug, or can I just load it on the browser console?

You can just run mw.loader.using( 'ext.discussionTools.init' ); in the console.

I can't reproduce this, the reply widget loads fine for me.