Commit graph

4705 commits

Author SHA1 Message Date
Translation updater bot b3050bbca9 Localisation updates from http://translatewiki.net.
Change-Id: Id85bac1c5ba1aeb0eee69801ac2691a987533b83
2013-11-13 20:21:02 +00:00
Translation updater bot 4e314d55b8 Localisation updates from http://translatewiki.net.
Change-Id: I78bdbe1840a3c3f640d4b7a1250289233c7d56be
2013-11-12 20:29:29 +00:00
Translation updater bot 6f41b1587c Localisation updates from http://translatewiki.net.
Change-Id: Ic4743e07885eff23f3a9a755412ce5aff230c187
2013-11-10 20:27:20 +00:00
Translation updater bot 952d833f6f Localisation updates from http://translatewiki.net.
Change-Id: I2f4030080f718b585ddafb9bf90d55a65fd93c7a
2013-11-09 19:09:44 +00:00
Translation updater bot 5ba9259e54 Localisation updates from http://translatewiki.net.
Change-Id: I2f55415a82ad439e7a3f35e95fcf001a47796375
2013-11-03 19:54:16 +00:00
jenkins-bot 2231a9a438 Merge "Only load RL modules when a <ref> tag is being used" 2013-11-03 18:32:16 +00:00
Marius Hoch 1805cbffec Fix cite parser tests
broken by I82fb4d7 in core

Change-Id: I13b919bb07ee2344a00d64e56593a372a199c5b1
2013-11-03 19:22:45 +01:00
Translation updater bot 2fffe32170 Localisation updates from http://translatewiki.net.
Change-Id: Ib481b45e730272a0eca9837481dd0225b1eb8c4b
2013-11-02 19:54:49 +00:00
Kunal Mehta a94c871cd2 Only load RL modules when a <ref> tag is being used
Bug: 55684
Change-Id: I8f7528ef8468bf3fa1c901fd6dc67b5eebc0cbd6
2013-11-01 13:47:35 +00:00
Translation updater bot 6832d0b4d7 Localisation updates from http://translatewiki.net.
Change-Id: Ia62c9ed62f2d54430c32ddd6a98b0c7b229873f6
2013-10-31 20:20:21 +00:00
Translation updater bot 0c630aef7a Localisation updates from http://translatewiki.net.
Change-Id: Ief5b221fb63cd2d1e04a0079328c185d425636b7
2013-10-28 20:08:30 +00:00
Translation updater bot ab9c48dd83 Localisation updates from http://translatewiki.net.
Change-Id: I7dc63c0a9d19daa74818e4635f1b9d26fc2a8e98
2013-10-26 19:20:19 +00:00
Translation updater bot 41da3edb52 Localisation updates from http://translatewiki.net.
Change-Id: I6fe053fb1469c006ba93d2e4c2e0b07a12b2a7e6
2013-10-25 18:48:02 +00:00
Subramanya Sastry aa2780a554 Minor: Cleanup and comment update.
Change-Id: I502f838f55a0a7c046b9d5969a8e5fb6af0dbc10
2013-10-23 20:57:17 -05:00
Translation updater bot e688aad349 Localisation updates from http://translatewiki.net.
Change-Id: I699a7e150a7809edc7c71568c1737ef6829bc306
2013-10-22 19:17:53 +00:00
Translation updater bot d46e4483d4 Localisation updates from http://translatewiki.net.
Change-Id: I78a457508be0f626f07a0c10d91e26bc02b1e3a2
2013-10-21 19:36:56 +00:00
Translation updater bot 4010849dec Localisation updates from http://translatewiki.net.
Change-Id: Ia33108aac136f7039f5015a2e9488538d7c876b1
2013-10-20 21:43:41 +00:00
Gabriel Wicke 914bf97575 Sanitize void tags and drop attributes for end tags
- Make sure void element attributes are sanitized

- Drop attributes on end tags

- Fix Cite to use data-parsoid instead of invalid attributes to pass
  information from the token stream to the DOM

Change-Id: If236d4c9197b12ff86a607763f25ed7677623bc4
2013-10-18 10:21:37 -07:00
Translation updater bot 09ee4fd398 Localisation updates from http://translatewiki.net.
Change-Id: Ia472fbc1646807ef8bb6c54c79d830ac063b3c06
2013-10-16 21:43:37 +00:00
jenkins-bot 17df49d426 Merge "Show error messages in content language to avoid cache issues" 2013-10-16 09:16:50 +00:00
Kunal Mehta f57bb804a3 Show error messages in content language to avoid cache issues
Bug: 31216
Change-Id: I725a972cbbf14fb179a24ab0682ad497524d4274
2013-10-15 21:38:45 -07:00
Translation updater bot 46139378a6 Localisation updates from http://translatewiki.net.
Change-Id: Ic541c187d965230908f3d31049604198331daf85
2013-10-15 19:24:41 +00:00
Translation updater bot 58fecd5afc Localisation updates from http://translatewiki.net.
Change-Id: Ie2351e9edaab6c896148c14ba409f0f4a65f267f
2013-10-13 19:26:07 +00:00
Subramanya Sastry baccddcf7c Bug fixes in aboutId assignment during DOM Fragment unpacking
* isForeignContent now flags content that is not originally
  present in the top-level page => transclusion and extension
  content. During DOM fragment unpacking, top-level children
  of the fragment are always re-assigned the fragment wrapper's
  about-id.

* For content that is not flagged isForeignContent (figures that
  are reused from cache, and all other users of dom-fragment
  including scoped parsing), the fragment DOM is walked and all
  about-ids are reassigned fresh about ids.

* From an earlier patchset (now unrelated to the bug fixes here)
  * Renamed older badly named isEncapsulatedElt helper
    to isFirstEncapsulationWrapperNode.
  * Left behind helper to recognize when a node is an
    encapsulation wrapper (in case it comes handy later on).

* No change in parser tests.

  TODO: We need a parser test with extensions in them.

  {{echo|<div>foo</div> <math>1+2</math> <div>bar</div>}} would
  not RT properly before this patch because the inner <math> node
  did not have the about-id as the surrounding <div>s. This patch
  fixes this.

  This should also fix a lot of the <timeline> regressions seen
  in latest RT testing.

Change-Id: I595e9f46d8ce789a05e4b7dd8b58e443e4c02f98
2013-10-11 13:42:27 -05:00
Gabriel Wicke a25f1e329c Move serializeNode to DOMUtils and use it for data-mw too
* Smaller data-mw with adaptive quoting.
* Updated parserTests with new output
* Also add a serializeChildren method that works similar to innerHTML.
* Move HTML normalization to DOMUtils to avoid cyclic dependencies
* Disable non-IE WS to space normalization pass, needs to be improved. See bug
  55588. This leads to some new passes and some new fails.

Change-Id: I392881bd8a0cfd9f116e70e9a52d1ef14bbd568b
2013-10-10 22:56:28 +00:00
Translation updater bot be28bce4d9 Localisation updates from http://translatewiki.net.
Change-Id: I5773606fefe0301943a311ef8eefb349360c76e0
2013-10-08 19:03:35 +00:00
Translation updater bot feee654fa1 Localisation updates from http://translatewiki.net.
Change-Id: Iaf75a390923cfacc1050de46b4a81f776f8dbbff
2013-10-08 00:51:42 +00:00
Subramanya Sastry 848f87626c Bunch of unrelated cleanup
* Got rid of unnecessary/buggy concat of EOFTk in ext.Cite.js
  to wikitext string (concat is only required when processing
  a token array from stage 2 onwards).

* Moved temporary node.data.parsoid.wrapper flag to a tmp object
  which is then stripped in the cleanup pass. Other temporary
  flags from other passes could also be moved here.

* Added a helper to test if a typeOf has a parsoid-generated
  value.

Change-Id: I2024c575b5293e5155fc8e2915a34b5fb8394671
2013-10-07 15:35:46 -05:00
Translation updater bot ad1ec25b23 Merge "Localisation updates from http://translatewiki.net." 2013-10-07 01:50:42 +00:00
Translation updater bot 65244c1c13 Localisation updates from http://translatewiki.net.
Change-Id: If5d20f3179bb85ef59f1af7b1568043641040cd1
2013-10-07 01:41:42 +00:00
Translation updater bot a5e1e76d46 Localisation updates from http://translatewiki.net.
Change-Id: I9679d2c8b3e47156c10209babb271c73ee567504
2013-10-06 23:57:04 +00:00
Translation updater bot 628c6575d0 Localisation updates from http://translatewiki.net.
Change-Id: I61219b6b5988b41aa497e74ef2ea72c261976111
2013-10-06 18:24:42 +00:00
Translation updater bot 0b7cf518ee Localisation updates from http://translatewiki.net.
Change-Id: I4b36c35e5e54c555ca9bcd907fb39e37c5a7b105
2013-10-03 17:47:24 +00:00
Subramanya Sastry 167dac7979 Introduce Parsing/DOM scopes for content fragments
* Added mechanism to parse a set of tokens in its own parsing
  scope all the way to DOM (which in turn restricts token
  transformations to just that scope). This is equivalent to
  enforcing well-balanced requirements in restricted contexts
  (Ex: link content, image captions for starters). This also
  provides an option of enforcing balanced templates in certain
  contexts.

  This patch applies it to link content and image captions.
  Deleted the hacky closeUnclosedBlockTags code for dealing
  with bad HTML in captions.

* Refactored common/duplicate code out of Cite handler and
  Template handler.

* Updated DSR handling for dom-fragments which eliminates the
  warnings about cs/s dsr mismatches seen on image reuse.

  it:Dalmine used to get a bunch of DSR inconsistency warnings
  when dom-fragments were reused (reported in bug 53071) and
  are now fixed with this patch.

* There is still one big hole in DOM fragment unpacking that
  has to be fixed. This pertains to improper tag nesting that
  will be broken up by the tree builder. The DOM fragment unpacker
  has to recognize these scenarios and fix up the DOM (either
  by fixing up the final DOM or by stripping mis-nested tags
  in the DOM fragment being unpacked).

  This patch has an incomplete hack for this that addresses
  the common-use case of nested a-tags generated by wikitext
  of this form: "[http://foo.bar a [[Wikilink] here]".

Bug: 54454
Bug: 49942
Bug: 44476
Bug: 47326

Change-Id: I33ee38bc43743125b705ac821b339586593dbef7
2013-10-03 11:08:23 -05:00
Translation updater bot 8f9932e604 Localisation updates from http://translatewiki.net.
Change-Id: Ie5f171087c8dd2e9eb46d3d4500b8f5d6efd84f9
2013-10-02 19:27:30 +00:00
Subramanya Sastry bd680c2e64 Added utility method to process content in pipeline.
* This eliminates repetitive code from a few places and might be
  useful for future patches as well.

Change-Id: I383ed253a2fa20c1b7429689d17cde176751e29a
2013-09-30 12:38:54 -05:00
Translation updater bot 2718cc9242 Localisation updates from http://translatewiki.net.
Change-Id: If099bf1f1e6f749ba25935d85f5b735dbd86900b
2013-09-29 19:53:44 +00:00
Kevin Israel b3becfb569 Add back serialize() calls for internal errors
For a value of the incorrect type, the type in question is a
relevant part of the error message.

Follows-up Ie0271de755a63fcda8a3671cc115af7bc931a02b.

Change-Id: I09d9f1975bdfabffe44a6f69b5296cdcbf03a51e
2013-09-28 19:40:17 +00:00
jenkins-bot fdabac12de Merge "Remove CategoryTree integration tests" 2013-09-28 19:39:39 +00:00
MatmaRex 47ef0dda91 Remove CategoryTree integration tests
Test, rather. It does more harm than good, making Cite annoying to
test in isolation (breaking on WMF jenkins setup) and doesn't really
add much value. The clearState() behavior fixed per bug 20748 should
be tested with a regular PHPUnit test, if anything.

Bug: 54126
Change-Id: I6b65ef7280f95a537f25b7f5c9e57434c21357dd
2013-09-28 14:08:02 +02:00
Kevin Israel a2f4a5a25d Remove calls to wfDebugDieBacktrace
Deprecated in I12336983e29524a450fc61ed9df4d840066be9b6.

Change-Id: Ie0271de755a63fcda8a3671cc115af7bc931a02b
2013-09-27 21:52:39 -04:00
Translation updater bot 6d74e8a34d Localisation updates from http://translatewiki.net.
Change-Id: I015e539102af44303a94bad862dc5e74fc6fe967
2013-09-23 19:39:45 +00:00
Translation updater bot 4f35b5e7bb Localisation updates from http://translatewiki.net.
Change-Id: I1428efffcfb4c0d0e7f3ed87051468df39e4c04c
2013-09-21 19:36:04 +00:00
Translation updater bot 5ad2fb54ad Localisation updates from http://translatewiki.net.
Change-Id: I04277c0e8dbf6bdba4b7f4bb0d712120cf2fc6b3
2013-09-19 19:29:02 +00:00
Translation updater bot 1e1cbb4b3c Localisation updates from http://translatewiki.net.
Change-Id: If80f48e6f2c8f9de290d2f246484bc643541def3
2013-09-17 19:43:30 +00:00
Translation updater bot 0ab9cbab0b Localisation updates from http://translatewiki.net.
Change-Id: I9267fef06c3c1c0b2b05c6ec2e4415602bb62a48
2013-09-16 19:32:56 +00:00
Translation updater bot 25c55ba6ec Localisation updates from http://translatewiki.net.
Change-Id: I932b97ba4c7e11a758c2bc552ea7c5f9a674e62d
2013-09-15 19:21:03 +00:00
Marius Hoch 9cc8f438fe Improve CSS for hiding the accessibility labels
This used to result in superfluous scroll bars
in WebKit/ Blink based browsers on enwiki:
https://en.wikipedia.org/wiki/Wikipedia:Village_pump_%28technical%29#Scrolling_past_the_bottom_of_the_page...

Change-Id: I4e7518262b8fdc5d3de49fff46166f7e205be9fe
2013-09-14 16:21:11 +02:00
Translation updater bot 2e3ec9ba26 Localisation updates from http://translatewiki.net.
Change-Id: I97b9343b539c45adb0fa67ff11347143298850b5
2013-09-13 20:46:23 +00:00
Translation updater bot 02ff445a24 Localisation updates from http://translatewiki.net.
Change-Id: Ib5e0162a4c4e7bae0909b5b438317932a61f36a7
2013-09-11 19:34:38 +00:00