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

wikimedia / parsoid / 3021
85%

Build:
DEFAULT BRANCH: master
Ran 17 Sep 2019 06:20PM UTC
Jobs 3
Files 306
Run time 7min
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

pending completion
3021

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>

19282 of 24282 branches covered (79.41%)

30146 of 35550 relevant lines covered (84.8%)

96869.74 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3021.1 17 Sep 2019 06:23PM UTC 0
84.8
Travis Job 3021.1
2 3021.2 17 Sep 2019 06:20PM UTC 0
84.8
Travis Job 3021.2
3 3021.3 17 Sep 2019 06:28PM UTC 0
84.83
Travis Job 3021.3
Source Files on build 3021
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3021
  • 6fbdd703 on github
  • Prev Build on master (#3020)
  • Next Build on master (#3022)
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