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

This is more complicated issue than it first looked like.

Main issue with this is following regular expression in plugin.js:

It fixes ending of img tag from to this /

I do not understand what has removed it, but it seems to be like that at least with IE. As soon as you have some kind of html format within image caption, this replace will corrupt starting tag of it, because it uses first '>' that it can find.

There are other same kind of problems with replacing quotes in attributes, current ones will put them in wrong places with your example.

I do not know anymore how good idea isolate/replace approach is with this, because it will prevent html codes to be converted into wikitext format.

I wonder what would be the easiest way to find all img tags with alt- and title- tags which should be isolated?