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

wikimedia / parsoid / 2157 / 2
85%
master: 85%

Build:
DEFAULT BRANCH: master
Ran 14 Dec 2018 09:30PM UTC
Files 113
Run time 17s
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

14 Dec 2018 09:19PM UTC coverage: 84.722% (+0.002%) from 84.72%
2157.2

push

travis-ci

jenkins-bot
Account for span wrapping when fragment is first transclusion node

A regression introduced in b241ac6.

Fixes the crashers on
http://localhost:8000/zh.wikipedia.org/v3/page/html/%E9%8C%B8%E7%9A%84%E5%90%8C%E4%BD%8D%E7%B4%A0/52156747
http://localhost:8000/en.wikipedia.org/v3/page/html/User_talk%3ANetha_Hussain%2FArchive_4/872287243
and others.

An isolated case from the zhwiki one is,
```
[[Test|{{1x|[[Hmm|Something <sup>strange</sup>]]}}]]
```

This edge case of link-in-link exposes that it's possible to end up with
a document fragment at the first encapsulation position of a template
without having span wrapped the fragment contents.  At present, only link
content (ignoring the nowiki extension exception) omits span wrapping
the fragment contents since it's being placed in an anchor.  Normally,
transclusion annotation would end up on the anchor itself, instead of
the link contents, but because of the content model violation here, we
end up trying to place the annotation on the text node ("Something").

This is more than just edge case handling since in the future we may
drop the span wrapping in the nowiki extension or come up with some
other wikitext construct that uses dom fragment without wrapping.

Bug: T211941
Change-Id: Ic398a6082

9326 of 11730 branches covered (79.51%)

15022 of 17731 relevant lines covered (84.72%)

26638.35 hits per line

Source Files on job 2157.2
  • Tree
  • List 0
  • Changed 11
  • Source Changed 1
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 2035
  • Travis Job 2157.2
  • 4eba44e5 on github
  • Prev Job for on master (#2156.2)
  • Next Job for on master (#2160.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