Page MenuHomePhabricator

More than one HTML comment at the start of a line causes line contents to be passed through without conversion to wikitext
Closed, ResolvedPublic

Description

At en.wp, Fram provided a description of how to "trick" VE into showing some markup without actually typing it.

<<Start from an "empty" page (it contains some hidden comments, but since you can't remove these with VE...): [https://en.wikipedia.org/w/index.php?title=User:Fram/sandbox&oldid=593249688].

Start a simple article in the normal way, with a header and some text.[https://en.wikipedia.org/w/index.php?title=User%3AFram%2Fsandbox&diff=593249716&oldid=593249688]

Now reopen that page in VE: [https://en.wikipedia.org/w/index.php?title=User:Fram/sandbox&oldid=593249716&veaction=edit] Hey presto, I get <nowiki>== Test ==</nowiki> instead of the actual header appearance, due to the invisible and unremovable hidden comments. >>

I was able to reproduce this, see https://en.wikipedia.org/w/index.php?title=User%3AElitre_%28WMF%29%2FSandbox&diff=593889873&oldid=593889831 .


Version: unspecified
Severity: major

Details

Reference
bz60829

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:53 AM
bzimport added a project: Parsoid.
bzimport set Reference to bz60829.

Works:

<!--Foo-->==Bar==

Doesn't work:

<!--Foo--><!--Foo-->==Bar==

Sad.

Change 122448 had a related patch set uploaded by Subramanya Sastry:
(Bug 60829) Accept multiple comments in SOL context

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

Change 122448 merged by jenkins-bot:
(Bug 60829) Accept multiple comments in SOL context

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