Run imageInfo and photoAttribution API requests in paraller
Merge pull request #9 from Wikia/attribution-parallel

Run imageInfo and photoAttribution API requests in parallel
Modify mockAPI to return correct answer for not existing files

This change fixes couple of wt2wt tests, because what previously was
parsed as <figure> is now handled as <meta> placeholder so there is no 
information lost while serializing.

Change-Id: Iec1ec2f099dd6d850d70aa4e48e813cd4ade07c7
Bug 53439: More performance results data.

- Links to order /perfstats by each separate stat.
- New page to show the stats for a title.
- Stats now show the full value on mouse-over.

Change-Id: Idac6bba7578340c1c70df45c75152247d32908c5
Merge "Modify mockAPI to return correct answer for not existing files"
Merge "Bug 53439: More performance results data."
Sync parserTests with core.

This matches upstream commit e7ce589265c7500759735d9e5c8ecbd008073fc9.

The blacklist changes are primarily related to bug 6200.

Change-Id: I2eaa9729298638210feec166265a1ca4c7eef3e1
Encapsulate foster-parented transclusion content.

Transclusion content is shadowed before the tree is built to detect
fostering. If fostering of transclusion content occurs, new metas are
inserted to wrap the table and foster box as transclusion marked.

Bug: 52945
Change-Id: I7bb99e3cc354effc9342004e0e7533f39de9907f
Merge remote-tracking branch 'upstream/master'
Bump html5 so that jsdom becomes an optional dep.

Merged upstream in,
https://github.com/aredridel/html5/pull/93

Changes to the selser output are most likely due to,
https://github.com/aredridel/html5/pull/88

Change-Id: I5b409022c05c308b09d3b6d10ea45894a40e5edb
Don't encapsulate when fosterbox is in transclusion.

Fixes a regression introduced in
1dba828d7eddf9f00aea6b47242ecfc4aedcdd07.

Change-Id: I2ebf49406276eeed1c46830b150fccafda5640d3
Minor code tweak.

Change-Id: I50b6f0f54026663561b55f48973eb91266a2cf67
Use just the 'Parsoid/0.1' user agent so that we don't distort stats

We don't want to distort the browser stats at
http://stats.wikimedia.org/wikimedia/squids/SquidReportClients.htm, so don't
masquerade as Firefox.

Change-Id: I26349e7751368f943c1b5e07f98100f5715463a7
Use table's tsr info for encapsulating transclusion meta.

The earlier implementation searched the table's siblings for tsr[0] to
avoid the case where the table's tsr[1] wasn't present.

However, since d05894f170ba8e9a712099d3e6e6cd48ff53808d, encapsulation
doesn't happen when the foster box, and thus the table, are in the
transclusion. So, tsr[1] should always be available.

Fixes regression introduced in 1dba828d7eddf9f00aea6b47242ecfc4aedcdd07.

Change-Id: I2da552b102c666f4942f07b1ac56163552d2a401
Merge "Use table's tsr info for encapsulating transclusion meta."
Add a test for DSR update bug.

The issue was fixed in ef177673207c211e554dbb32cba2ed278a40c53f.

Change-Id: If0b912e8f8c5227dc87b8cd95c5ce6deec98874e
Merge "Add a test for DSR update bug."
Use html5 release.

Change-Id: I3540b529bcec1f83b8e32e96f5814f2cbb2a6c04
(Bug 48570) Fix subtle selser bug handling separator-only nodes

* When the original source for an element node whose content
  was entirely made up of separator text, selser duplicated the
  separator in leading and trailing separators. This manifested
  in the various bug reports around an extra space before links
  and colons (which introduces an &nbsp; <span> which exhibits
  this separator-only node behavior and causes the single-space
  duplication reported in the bug reports).

* This patch also fixes 11 additional selser tests.

Change-Id: Ibbc97e2eeb93fff56beb3fdc9cb2875ceb3e100b
Tweaks to tokenizing and bug fixes for escaping of behavior switches

* While debugging RT failures on en:Duke_of_Aveiro because of
  excessive nowiki escaping, discovered that escaping was getting
  tripped by behavior switch tokenizing. Then discovered that the
  existing wikitext escaping was completely missing escaping
  for magic-words.

* This patch adds escaping for text that would parse as magic words.
  In addition, it also adds checks to not trip on magic-word-like
  syntax which fixes the RT problems on en:Duke_of_Aveiro

* Added new parser tests for this behavior.

* Cleaned up debugging/tracing for wikitext escaping.
* Added tracing of wikitext escaping logic (--trace wt-escape)
* Added tracing to spit out tokenizer tokens only (--trace peg-tokens)

* Most RT failures on en:Duke_of_Aveiro are now fixed -- the remaining
  issue will be investigated in a new patch since it doesn't seem
  related to behavior switch handling.

Change-Id: Icef5d313f380261502da7fcbddc4e48c304b64d9