very short <pre> sections are skipped in reader mode

NEW
Unassigned

Status

()

Toolkit
Reader Mode
P3
normal
6 months ago
3 months ago

People

(Reporter: Igor Galić, Unassigned)

Tracking

(Blocks: 1 bug)

53 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [reader-mode-readability-algorithm])

(Reporter)

Description

6 months ago
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0
Build ID: 20170408090553

Steps to reproduce:

When viewing the Guile Manual in Reader Mode, i noticed that certain (expected) pre sections were missing. I thought that this was a side-effect of the strain i put on it by viewing the entire manual (https://www.gnu.org/software/guile/manual/guile.html) but it's also reproducible on single pages, such as: https://www.gnu.org/software/guile/manual/html_node/Simple-Invocation.html#Simple-Invocation


Actual results:



<p>is a procedure invocation whose result is the string value
<code>&quot;/home/andrew&quot;</code>.
</p>
<p>Similarly, <code>string-length</code> is a standard Scheme procedure that
returns the length of a single string argument, so
</p>
<div class="lisp">
<pre class="lisp">(string-length &quot;abc&quot;)
</pre></div>

<p>is a procedure invocation whose result is the numeric value 3.
</p>


is displayed as

Similarly, string-length is a standard Scheme procedure that returns the length of a single string argument, so

is a procedure invocation whose result is the numeric value 3. 


Expected results:

I would expect <pre> sections, regardless of their brevity, to be displayed in Reader Mode.
(Reporter)

Comment 1

6 months ago
n.b.: This is happens on the Desktop & Mobile firefox.
Component: Untriaged → Reader Mode
Product: Firefox → Toolkit
(Reporter)

Comment 2

6 months ago
submitted upstream: https://github.com/mozilla/readability/issues/374
Blocks: 1329358
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
Whiteboard: [reader-mode-readability-algorithm]
You need to log in before you can comment on or make changes to this bug.