- Create a gallery caption with <small> text: https://www.mediawiki.org/wiki/User:ESanders_(WMF)/sandbox/gallery
- Try to append some text to the caption in the gallery dialog
- In the save dialog, preview your changes, observe the text you added is not there
Description
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Bump Parsoid to 0.15.0-a10 | mediawiki/vendor | master | +289 -267 | |
DOM diff galleries | mediawiki/services/parsoid | master | +27 -0 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | • ppelberg | T294450 <small> gallery caption can't be edited | |||
Resolved | Arlolra | T214648 DOMDiff'ing doesn't traverse into galleries |
Event Timeline
After editing the caption I get the following HTML from VE (using ve.init.target.surface.getHtml())
<ul typeof="mw:Extension/gallery" data-mw='{"name":"gallery","attrs":{},"body":{}}' class="gallery mw-gallery-traditional" about="#mwt2" id="mwAg"> <li class="gallerybox"> <div class="thumb"> <span typeof="mw:Image"> <a><img resource="./File:VisualEditor-logo.svg" src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/12/VisualEditor-logo.svg/200px-VisualEditor-logo.svg.png" /></a> </span> </div> <div class="gallerytext"><small id="mwCQ">Small caption MODIFIED</small></div> </li> </ul>
Which converts to the correct wikitext in a standalone instance of Parsoid. This leads me to believe this must be a problem with restbase IDs / data-parsoid.
If I remove then re-add the <small> styling in the editor, I get a new HTML element in the output, without id="mwCQ" and the bug goes away, so this is definitely a Parsoid issue.
Change 735081 had a related patch set uploaded (by Arlolra; author: Arlolra):
[mediawiki/services/parsoid@master] [WIP] DOM diff galleries
Let's keep this task open as it more clearly describes the user problem from the Editing team's perspective. It will be easier for our QA to verify.
Change 735081 merged by jenkins-bot:
[mediawiki/services/parsoid@master] DOM diff galleries
Change 738988 had a related patch set uploaded (by Sbailey; author: Sbailey):
[mediawiki/vendor@master] Bump Parsoid to 0.15.0-a10
Change 738988 merged by jenkins-bot:
[mediawiki/vendor@master] Bump Parsoid to 0.15.0-a10
We''re good on this now. I also tried saving, just to be sure. What you see is actually what you get.
For reference: