Page MenuHomePhabricator

VisualEditor: Editing a <syntaxhighlight> block with the experimental generic editor leads to brokenness because the attributes get blanked
Closed, ResolvedPublic

Description

Author: wojciech.r

Description:
When I edit existing content in <source> tags, while editing it, error is shown about invalid language specified (lang=) and after saving it puts fragment of HTML code of this tag divs and entities into source of page and my code is broken.

https://www.mediawiki.org/w/index.php?title=VisualEditor:Test&oldid=773552


Version: unspecified
Severity: major

Details

Reference
bz53543

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:03 AM
bzimport set Reference to bz53543.

Change 82063 had a related patch set uploaded by Esanders:
Round trip alien extensions correctly when edited

https://gerrit.wikimedia.org/r/82063

This fix preserves attributes correctly. The above bug would allow you to edit them.

Change 82063 merged by jenkins-bot:
Round trip alien extensions correctly when edited

https://gerrit.wikimedia.org/r/82063

This is now fixed in master, and will be released to MediaWiki.org on Thursday 5 September. Sorry for the disruption.