Page MenuHomePhabricator

Improper parsing of <inputbox> lines with leading spaces
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

Originally reported on GitHub by KockaAdmiralac:

In this section, the wikitext linter included in CodeMirror (which is presumably the same one from this repository) is reporting "invalid parameter of <inputbox> (no-ignored)" on every line of:

<inputbox>
  type        = commenttitle
  page        = {{TALKPAGENAME}}
  buttonlabel = Apply for a staff position
  default     = {{subst:REVISIONUSER}}
  hidden      = yes
  preload     = {{FULLPAGENAME}}/Preload
</inputbox>

When I remove the leading spaces from each line, the error disappears. I believe wikiparser-node might be incorrectly parsing <inputbox> arguments, since the resulting output works no matter the leading spaces.

This bug is a result of an outdated version of WikiParser-Node and cannot be reproduced upstream.

What happens?:

WikiLint consistently reports false positives about <inputbox> parameters with leading whitespaces.

What should have happened instead?:

There should be no reported diagnostics.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

Change #1277267 had a related patch set uploaded (by Bhsd; author: Bhsd):

[mediawiki/extensions/CodeMirror@master] mediawiki worker: disable no-ignored inside <inputbox>

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

Bhsd changed the task status from Open to Stalled.Apr 26 2026, 1:35 PM
Bhsd claimed this task.
Bhsd added a project: Upstream.
Bhsd changed the task status from Stalled to In Progress.Thu, May 21, 1:47 AM

Change #1277267 merged by jenkins-bot:

[mediawiki/extensions/CodeMirror@master] mediawiki worker: upgrade wikiparser-node

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

Bhsd moved this task from Bugs to Done on the MediaWiki-extensions-CodeMirror board.