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

wikimedia / parsoid / 2157
85%

Build:
DEFAULT BRANCH: master
Ran 14 Dec 2018 09:30PM UTC
Jobs 3
Files 113
Run time 6min
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
2157

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

9331 of 11730 branches covered (79.55%)

15034 of 17731 relevant lines covered (84.79%)

79915.09 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2157.1 14 Dec 2018 09:33PM UTC 0
84.79
Travis Job 2157.1
2 2157.2 14 Dec 2018 09:30PM UTC 0
84.72
Travis Job 2157.2
3 2157.3 14 Dec 2018 09:36PM UTC 0
84.72
Travis Job 2157.3
Source Files on build 2157
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2157
  • 4eba44e5 on github
  • Prev Build on master (#2156)
  • Next Build on master (#2160)
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