Page MenuHomePhabricator

End of line (vs End of paragraph) causes "mis-nesting" Linter error when italics <i></i> applied around entire block
Open, MediumPublic

Description

This is being opened as a task because of something that arose on Latin Wikisource. (It's not necessarily a bug, but a concern.)

https://la.wikisource.org/w/index.php?title=Pagina%3APrincipia_newton_la.djvu%2F107&type=revision&diff=84044&oldid=52549

The one on the left was being treated as having Misnested <i></i> pairs.

The one on the right is not The only difference being the collapsing of white space and end of lines inside the <i></i> pairs.

Given that contributors may not be aware that <i></i> and <b></b> etc are perhaps supposed to be what the HTML spec calls phrasing content (Span-like) vs the flow content that a <p></p> (block content) would be it would be appreciated, if what's happening in the former page is confirmed as being by intention as well as by implementation.

Event Timeline

ShakespeareFan00 renamed this task from Implied line feed causes "mis-nesting" Linter error when italics <i></i> applied around entire block to End of line (vs End of paragraph) causes "mis-nesting" Linter error when italics <i></i> applied around entire block.Jan 28 2018, 9:31 AM

Another exmple- https://la.wikisource.org/wiki/De_revolutionibus_orbium_coelestium/04

Here the lines are terminated with <br />

This says there's a missing span... BOTH opening and closing tags are present in the original, but on different lines broken up with BR tags...

ssastry triaged this task as Medium priority.Mar 11 2019, 5:08 PM
ssastry moved this task from Backlog to Parsoid on the MediaWiki-extensions-Linter board.