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
Sometimes the <ol> element of an ordered list is dropped from the content output.
Here is a repro:
test('JSDOM and Readability',()=>{consthtml=`<html> <body> <ol> <li><p>AI hasn’t meaningfully changed anything in cybersecurity so far. Deep fake phishing is still rare, L</p></li> </ol> </body></html>`constdom: JSDOM=newJSDOM(html)constextracted=newReadability(dom.window.document,{debug: true}).parse()expect(extracted?.content).toContain("<ol>")})
Here is the failure:
● JSDOM and Readability
expect(received).toContain(expected) // indexOf
Expected substring: "<ol>"
Received string: "<div id=\"readability-page-1\" class=\"page\"><div>
<li><p>AI hasn’t meaningfully changed anything in cybersecurity so far. Deep fake phishing is still rare, L</p></li>
</div></div>"
82 | }).parse()
83 |
> 84 | expect(extracted?.content).toContain("<ol>")
| ^
85 | })
at Object.<anonymous> (__tests__/email/emailParser.test.ts:84:32)
Sometimes the
<ol>
element of an ordered list is dropped from thecontent
output.Here is a repro:
Here is the failure:
This is using
Here is the debug output:
The text was updated successfully, but these errors were encountered: