You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Short sentence standalone paragraphs missing from reader view of https://www.royalroad.com/fiction/63759/super-supportive/chapter/1449598/one-hundred-two-what-kind-of-wordchain
#861
Closed
jaredhirsch opened this issue
Apr 15, 2024
· 2 comments
· Fixed by #867
As described in https://bugzilla.mozilla.org/show_bug.cgi?id=1890310, this page contains a number of very short paragraphs (one or a few words) that are lost in reader view, even though most of the content is correctly displayed.
It's worth noting that this website's design is to wrap each paragraph's content in <div><div><span>, with inline styles applied to all three elements, rather than just putting the content in sibling <p> elements. So the page structure looks like a few hundred blocks like this:
adding && linkDensity > 0 to that check lets them through though. seeing 221 child elements in the expected output vs 222 in the source, with the 1 missing element being an empty div. this does affect a number of test cases, but they seem manageable so far. i'll open PR (at least a draft) for this shortly.
As described in https://bugzilla.mozilla.org/show_bug.cgi?id=1890310, this page contains a number of very short paragraphs (one or a few words) that are lost in reader view, even though most of the content is correctly displayed.
It's worth noting that this website's design is to wrap each paragraph's content in
<div><div><span>
, with inline styles applied to all three elements, rather than just putting the content in sibling<p>
elements. So the page structure looks like a few hundred blocks like this:Some examples of missed content:
Slightly longer sentences not dropped from reader view:
The text was updated successfully, but these errors were encountered: