Thread:Extension talk:WYSIWYG/Formatting in image captions causes parsererror/reply (2)

Based on my quick test (sample above) it seems like actions happen in this order:
 * 1) CKeditorParser.body.php=>internalParse function
 * 2) CKeditorLinker.php=>makeImageLink2 function

With my test page in IE11, in case of "alt=..." I do not get any parser errors and all html definitions disappear from image. In case of "caption=..." I get parser error but it seems like html code of caption is there on page.

Parser error comes from plugins.js=>_getNodeFromHtml so I assume fix of this would require:
 * 1) removing htmlspecialchars with caption in CKeditorLinker.php=>makeImageLink2 (I am not 100% sure if this is required or not)
 * 2) creating isolate/restore action for caption text which contains html code in plugin.js=>toDataFormat (in same way what has been done with  fck_mw_plg_replaceHTMLcomments / fck_mv_plg_revertEncapsulatedString for html comments)

But... you have surely picked a challenging example :), because there is also internal wiki link inside text of caption. It may be that this will require some additional fixes too before it will work in wysiwyg.