Last modified: 2014-08-20 22:13:17 UTC
https://en.wikipedia.org/wiki/Dachshund#Coat_and_color has a complex gallery tag: <gallery widths="200px" heights="200px" perrow="5" caption= "There are three types of dachshund, which can be classified by their coats: short-haired, called "smooth"; long-haired; and wire-haired"> File:Wirehaired_Dachshund.jpg|A wire-haired dachshund File:Kurzhaardackel.jpg|A short-haired dachshund Std Dachshund 600.jpg|A long-haired standard dachshund File:Piebald.jpg|A piebald dachshund File:Red-merle smooth Dachshund.jpg|A dapple dachshund</gallery> It's being displayed as raw wikitext in VisualEditor on desktop.
This is invalid wikitext – you can't use raw " characters inside the caption of a gallery. Parsoid works just fine if you replace them with ' characters instead: <gallery widths="200px" heights="200px" perrow="5" caption= "There are three types of dachshund, which can be classified by their coats: short-haired, called 'smooth'; long-haired; and wire-haired"> File:Wirehaired_Dachshund.jpg|A wire-haired dachshund File:Kurzhaardackel.jpg|A short-haired dachshund Std Dachshund 600.jpg|A long-haired standard dachshund File:Piebald.jpg|A piebald dachshund File:Red-merle smooth Dachshund.jpg|A dapple dachshund</gallery> I've fixed this in the article, but am moving the bug to Parsoid in case they want to comment/merge into a wider bug about escaping bad wikitext?
I imagine this is probably not that uncommon since template args and template content may use the same quotes and thus break the html tags. We've seen a few different instances of this bug now. So, maybe worth investigating what it takes to handle this form of broken wikitext a bit more leniently.
*** Bug 66065 has been marked as a duplicate of this bug. ***