Last modified: 2012-12-06 20:36:19 UTC
Wikitext to reproduce: <span> [bunch of newlines] </span> Parsoid generates <span><p></p></span> for this, but it doesn't mark the span. Todo: * Make the failure a bit more graceful * Investigate whether p inside span is legal * Investigate other cases where this breakage occurs * File bug with Parsoid for proper protection of user-generated tags
This content would be in violation of the HTML spec, I believe.
(In reply to comment #1) > This content would be in violation of the HTML spec, I believe. Yes. But Gabriel argues this is bound to occur in some cases anyway. Proposed approach: detect these cases (block node inside inline node or annotation node) without crashing, and handle them by backing out and alienating the outer node.
Slight tweak to the approach: it was easier not to back up to the outer node, but instead just inline-alienate the inner node. https://gerrit.wikimedia.org/r/37172
Resolved in If420ae80ab0777424a9a5517335ef9d0170e87ae