Best I can tell, it's not possible to resolve duplicate-ids lint errors by editing Parsoid HTML because underlying duplicate ID isn't exposed in the HTML.
Given the wikitext:
<div id="test"> one </div> <div id="test">two</div>
You get the HTML:
<div id="test" data-parsoid="{"stx":"html","dsr":[0,26,15,6]}">
<p id="mwAg" data-parsoid="{"dsr":[16,19,0,0]}">one</p>
</div>
<div id="mwAw" data-parsoid="{"stx":"html","dsr":[27,51,15,6]}">two</div>There's no way to know that the second div actually has a duplicate ID and what the duplicate value is. Can it be exposed somehow? Maybe a special data-mw-duplicate-id="..." attribute or I guess just adding it to data-mw itself? (Something that can be in a CSS selector would be ideal) And then I would expect that I could then change the id attribute to set a different ID in the wikitext.
Also I noticed that in some cases, if you convert that HTML back to wikitext, it strips the ID entirely, but it doesn't seem 100%.