https://bugzilla.wikimedia.org/show_bug.cgi?id=66616
C. Scott Ananian <canan...@wikimedia.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |canan...@wikimedia.org --- Comment #3 from C. Scott Ananian <canan...@wikimedia.org> --- Note that performance of CSS selectors is generally sensitive to the right-hand context. The point of using a consistent structure in the Parsoid DOM for figures/images is so that you could reliably use: figure[typeof~='mw:Image/Thumb'] > * > img or even figure[typeof~='mw:Image/Thumb'] > *:first-child > img:first-child instead of needing to do figure[typeof~='mw:Image/Thumb'] img (which I agree is bad, since it grabs images nested inside captions, as well as any images which are added to the markup by widgets etc, as well as causing the performance implication of a whole leaf-to-root walk up the DOM for every img tag). -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l