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
It will be rendered in the browser as two different words, as intended by the markup. Below I have pasted as non-code and you can see how it looks:
Foo
Bar
However, the "textContent" field of Readability will merge the words as: "FooBar", which is incorrect.
My long-standing solution has been to parse the "content" HTML data of Readability, which works, but adds another layer of non-trivial code maintenance and effort.
I am wondering if there is a solution to this problem? This has been a bug since the Arc days, I've always wondered if anybody else was dealing with it.
The text was updated successfully, but these errors were encountered:
I'm not sure why this is a WONTFIX bug, it undermines the core utility of the textContent functionality. If there is no intention for textContent to produce actual text content it should be removed as the current situation introduces a very subtle bug most people won't notice immediately. It's much worse to have it exist and be subtly broken, than to not have it at all.
I'm going to open a new issue to remove textContent from Readability.js as that is the best solution.
If the page has source as such:
<h3>Foo</h3><p>Bar</p>
It will be rendered in the browser as two different words, as intended by the markup. Below I have pasted as non-code and you can see how it looks:
Foo
Bar
However, the "textContent" field of Readability will merge the words as: "FooBar", which is incorrect.
My long-standing solution has been to parse the "content" HTML data of Readability, which works, but adds another layer of non-trivial code maintenance and effort.
I am wondering if there is a solution to this problem? This has been a bug since the Arc days, I've always wondered if anybody else was dealing with it.
The text was updated successfully, but these errors were encountered: