Page MenuHomePhabricator

Internal contents parser incorrectly processes some items in Contents section when <style> block is present
Closed, ResolvedPublic


Steps to reproduce

  1. Open the article "Gibson Les Paul" (web-equivalent: )
  2. Open contents pane

Expected results

To see correct entry for Origins section
Origins (1950-1952)

Actual results

The actual entry looks like this
.mw-parser-output .vanchor>:target~.vanchor-text{background-color:#b1d2ff}Origins (1950-1952)

Stack trace

Environments observed

Wikipedia-App-Les-Paul.jpg (1×1 px, 210 KB)
App version:
Android OS versions:
Device model:
Device language:


The page source for this page for the entry in question contains the following fragment

  <style data-mw-deduplicate="TemplateStyles:r1023754711">
.mw-parser-output .vanchor>:target~.vanchor-text{background-color:#b1d2ff}

and probably the gt (>) symbol here is misleading for the parser

Event Timeline