mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 09:09:25 +00:00
031602f525
- More pieces are now simplified and all(?) newline handling is now centralized in the serializeToken function. - This commit fixes bugs in rt-ing some code snippets ---------- Ex 1: foo<p>bar</p>baz ---------- - This commit fixes bugs serializing VE generated html ---------- Ex 2: <p>foo</p><pre>bar</pre> ==> foo\n bar ---------- - But, this round of fixes introduces RT failures for certain code examples in parserTests.txt. In all these failing cases, inline text/html is embedded within a generated <p> tag during parsing. If these generated <p> tags can have a "gc:1" attribute added to them, we can properly serialize them to the original form. ---------- Ex 3: foo<pre>bar</pre> Parsed HTML: <p>foo</p><pre>bar</pre> ---------- Note how this parsed HTML is identical to what the VE outputs in Example 2 above. So, without the gc:1 attribute, we now have conflicting requirements on the example same HTML. This increases confidence in the correctness of my commit here. Change-Id: I86beadec91c445a7f8a6d36a639b406697daa0a2 |
||
---|---|---|
api | ||
contentEditable | ||
demos | ||
modules | ||
tests | ||
.gitignore | ||
.gitreview | ||
ApiVisualEditor.php | ||
README | ||
SpecialVisualEditorSandbox.php | ||
VisualEditor.alias.php | ||
VisualEditor.hooks.php | ||
VisualEditor.i18n.php | ||
VisualEditor.php |
We're starting to merge bits from Wikidom and ParserPlayground tests here. Enjoy! Short-term work highlights: * convert parser to wikidom format & using the wikidom serializer * port/update/write more tests * Special: page to host the editor as a standalone demo * Opt-in test mode to switch the editor in on EditPage (initially blank) * Use serializer to save pages from editor * Use parser to load pages into editor Long-term work highlights: * more thorough & bulk testing * more extension support