Page MenuHomePhabricator

Uncaught TypeError: Cannot read property 'tagName' of null
Closed, DuplicatePublic

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:
Screen Shot 2020-07-01 at 10.41.17 PM.png (1×2 px, 801 KB)

Event Timeline

  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.