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

bzimport added a project: Parsoid.Via ConduitNov 22 2014, 2:53 AM
bzimport set Reference to bz60829.
Elitre created this task.Via LegacyFeb 4 2014, 2:51 PM
Jdforrester-WMF added a comment.Via ConduitMar 13 2014, 2:37 AM

Works:

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

Doesn't work:

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

Sad.

gerritbot added a comment.Via ConduitMar 31 2014, 6:25 PM

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

gerritbot added a comment.Via ConduitMar 31 2014, 7:05 PM

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

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

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.