https://bugzilla.wikimedia.org/show_bug.cgi?id=50123
Web browser: ---
Bug ID: 50123
Summary: Parsoid: Serializer inserts odd whitespace eventhough
nodes are no longer in DOM
Product: Parsoid
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
Created attachment 12627
--> https://bugzilla.wikimedia.org/attachment.cgi?id=12627&action=edit
Screenshot of the problem in the serialization
I think this is caused by Parsoid trying to preserver/re-add whitespace when
round-tripping.
Steps to reproduce issue:
* Create a page like the default MediaWiki main page:
<<<MW
'''MediaWiki has been successfully installed.'''
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for
information on using the wiki sandbox software. 12
== Getting started ==
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration
settings list]
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki
release mailing list]
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise
MediaWiki for your language]
MW;
* Edit it with VisualEditor
* Put the cursor before "MediaWiki release mailing list" and select back until
before the first character of the heading "Getting started".
* Press backspace. You're now left with 2 of 4 items in the list and an empty
heading.
* Again, out the cursor before "MediaWiki release mailing list" and delete
until you're behind "software. 12". You're now left with "MediaWiki release
mailing list" in the paragraph and a list with 1 item.
* Save page -> Review changes (Screenshot attached)
It inserts a lot of new lines.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l