https://bugzilla.wikimedia.org/show_bug.cgi?id=47426
Web browser: ---
Bug ID: 47426
Summary: id in data-mw on templates triggers diff
Product: Parsoid
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: JS/General
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
The id reference in the data-mw attribute on template content (see
http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Template_content) is
not deterministic across re-parses. This makes it very likely that this
attribute will serialize to a different string, which in turn causes the
template node to be marked as 'modified-wrapper' in DOMDiff. The WTS
serialization of the template often introduces some whitespace diffs around
named parameters. Without a diff in data-mw selser would hide this issue.
The best solution for now is probably to leave out the id member from data-mw.
There are no users for it currently, so this should not create issues.
--
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