Page MenuHomePhabricator

"Uncaught TypeError: Cannot read property 'split' of null" when trying to reply to some comments wrapped in <span style="font-size: smaller;"> tags
Closed, ResolvedPublic

Description

"Uncaught TypeError: Cannot read property 'split' of null" when trying to reply to some comments wrapped in <span style="font-size: smaller;"> tags.

Reported here: https://www.mediawiki.org/wiki/Topic:W1gtzhlippvg6izz

Uncaught TypeError: Cannot read property 'split' of null
    at Object.isRenderingTransparentNode (...)
    at Object.addListItem (...)
    at CommentController.js.CommentController.setup (...)
    at CommentController.js.CommentController.onReplyLinkClick (...)
    at HTMLAnchorElement.dispatch (...)
    at HTMLAnchorElement.elemData.handle (...)

Test page: https://cs.wikipedia.org/wiki/Diskuse_s_wikipedistou:Patriccck/Test

image.png (2×3 px, 567 KB)

image.png (2×3 px, 659 KB)

Event Timeline

Change 656257 had a related patch set uploaded (by Bartosz Dziewoński; owner: Bartosz Dziewoński):
[mediawiki/extensions/DiscussionTools@master] Fix exception when trying to use non-existent 'typeof' attribute

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

matmarex renamed this task from "Uncaught TypeError: Cannot read property 'split' of null" when trying to reply to some comments wrapped in <small> tags to "Uncaught TypeError: Cannot read property 'split' of null" when trying to reply to some comments wrapped in <span style="font-size: smaller;"> tags.Jan 15 2021, 1:15 PM
matmarex updated the task description. (Show Details)

Change 656257 merged by jenkins-bot:
[mediawiki/extensions/DiscussionTools@master] Fix exception when trying to use non-existent 'typeof' attribute

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