• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wikimedia / parsoid / 3021 / 3
85%
master: 85%

Build:
DEFAULT BRANCH: master
Ran 17 Sep 2019 06:28PM UTC
Files 153
Run time 8s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Sep 2019 05:54PM UTC coverage: 84.827% (+0.04%) from 84.789%
3021.3

push

travis-ci

cscott
<a href="https://github.com/wikimedia/parsoid/commit/6fbdd7038">Clear invalid DSRs in &lt;poem&gt;

The poem extension munges its contents before parsing it as wikitext.
This means that the parsed content doesn&#39;t appear literally in the
source document -- therefore we need a new parsing frame.  In addition,
we should clear the DSR in the result, since we are not currently
correctly mapping these DSRs to offsets in the source document, and
so they can&#39;t be used for selser.

If we ever implement selser on the &lt;poem&gt; contents, we simply need
to record the mapping to original $contents as we preprocess it,
and then apply this mapping to the DOM result, the same way we do
for the gallery extension.

This off-by-one error was present in both the PHP and JS implementations,
although only the PHP implementation triggered an assertion failure
because (a) in JavaScript you&#39;d have to use emojis or other astral symbols,
and (b) the JavaScript implementation doesn&#39;t do unicode offset consistency
checks, so you&#39;d have to examine the DSR offsets directly to see the
bug; since we don&#39;t do selser on &lt;poem&gt; contents the bad DSR offsets
can&#39;t actually cause a bad html2wt result.

You can see the bad DSR and one-character-shifted template parameter data-mw
contents in the HTML generated by the JavaScript implementation before this
patch, however.  Parser test added to document/prevent regression.

Bug: T231945
Change-Id: I</a><a class="double-link" href="https://github.com/wikimedia/parsoid/commit/86f5c27bf">86f5c27bf</a>

9642 of 12141 branches covered (79.42%)

15078 of 17775 relevant lines covered (84.83%)

33344.93 hits per line

Source Files on job 3021.3
  • Tree
  • List 0
  • Changed 97
  • Source Changed 2
  • Coverage Changed 97
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 2799
  • Travis Job 3021.3
  • 6fbdd703 on github
  • Prev Job for on master (#3020.2)
  • Next Job for on master (#3022.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc