Page MenuHomePhabricator

Endless loading when pressing "Show preview" (Uncaught TypeError: span.firstChild.getAttribute is not a function)
Closed, ResolvedPublic1 Estimated Story Points

Description

Steps I did:

  1. I went to https://commons.wikimedia.org/w/index.php?title=Category:Cylapus&veaction=editsource (didn't exist yet)
  2. I pasted some content
  3. I pressed the pen icon to switch to VE
  4. I pressed the same icon (this time [[ ]]) to get back to wikitext
  5. I pressed Save page
  6. I pressed Show preview

Result:
Enless loding, and this error message

pasted_file (1,366×768 px, 286 KB)

pasted_file (1,366×768 px, 391 KB)

Uncaught TypeError: span.firstChild.getAttribute is not a function                                 index.php:386
    at isOnPage (eval at <anonymous> (/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=1rfuz0b:4), <anonymous>:386:965)
    at createEditors (eval at <anonymous> (/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=1rfuz0b:4), <anonymous>:389:169)
    at setup (eval at <anonymous> (/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=1rfuz0b:4), <anonymous>:389:379)
    at getPage (eval at <anonymous> (/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=1rfuz0b:4), <anonymous>:393:83)
    at really_run (eval at <anonymous> (/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=1rfuz0b:4), <anonymous>:394:302)
    at LoadTrigger.register (eval at <anonymous> (/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=1rfuz0b:4), <anonymous>:326:520)
    at run (eval at <anonymous> (/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=1rfuz0b:4), <anonymous>:393:718)
    at eval (eval at <anonymous> (/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=1rfuz0b:4), <anonymous>:396:545)
    at fire (/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=1rfuz0b:45)
    at Object.fireWith (/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=1rfuz0b:46)

Event Timeline

Josve05a renamed this task from Endless loading when prressing "Show preview" (Uncaught TypeError: span.firstChild.getAttribute is not a function) to Endless loading when pressing "Show preview" (Uncaught TypeError: span.firstChild.getAttribute is not a function).Jan 21 2017, 2:53 PM

This is a bug in hotcat, it hooks in to wikipage.content, but doesn't scope its actions to the target element.

Esanders claimed this task.
Jdforrester-WMF moved this task from To Triage to TR0: Interrupt on the VisualEditor board.
Jdforrester-WMF set the point value for this task to 1.