mediawiki-extensions-Visual.../modules
Gabriel Wicke e117f09362 Wikitext escaping and quite complete source range tracking
* Started to add more complete tag source range (tsr) annotations to most
  start / empty tags. These replace the old sourcePos and sourceTagPos
  annotations, and look more promising for general round-tripping than block
  source ranges (bsr). See
  http://www.mediawiki.org/wiki/User:GWicke/Parsoid_source_ranges for some
  notes on this.
* Added an escapeWikitext method in the serializer that tokenizes supposedly
  text-only content from the DOM with the tokenizer and wraps runs of returned
  non-text tokens into nowiki tags. The source corresponding to non-text
  tokens is retrieved using the tsr annotations.
* Removed old (unused) table productions to avoid confusion.
* 276 round-trip tests are passing, vs. 283 without escaping.

Known issues:
* harmless for now, can be improved later: urllinks in external link captions
  are wrapped in nowiki. Example HTML:

<a rel='mw:extLink' href="http://example.com">http://example2.com</a>

* some start-of-line syntax in wiki-syntax preformatted blocks might be
  wrapped into nowiki when that would not really be needed. Example HTML DOM:

<pre>
* foo
* bar
</pre>

Change-Id: I01c34aedd5c566614d36924add47a6a960e91987
2012-06-19 23:36:44 +02:00
..
jquery Fully revert r114142, was previously reverted in Collection only 2012-03-21 20:45:24 +00:00
parser Wikitext escaping and quite complete source range tracking 2012-06-19 23:36:44 +02:00
qunit Updated QUnit 2012-03-09 21:50:24 +00:00
rangy svn:eol-style native 2012-02-10 16:57:02 +00:00
sandbox Build out ve.Surface constructor to support multiple editor instances 2012-04-26 11:56:47 -07:00
ve Get rid of selectionDirection. Introduce getDirection() methdo in 2012-04-27 17:36:55 -07:00