IIRC, other parsers will take the length into account when the markup doesn't use good semantics. It's probably safe to assume that the longest section is the main content.
That will never be perfect, though, so it could be really helpful to give the user a way to quickly swap between different elements, almost like a photo gallery slider. If the parser thinks there are 3 elements that are likely to hold the content, then it could show the one with the highest probability. Then, there could be left/right arrows on the edges the reader to swap between different elements.
Expected Behavior
https://www.a2hosting.com/kb/installable-applications/optimization-and-configuration/wordpress2/using-apc-or-opcache-with-wordpress?jr=on should show the contents of the article (
div.text-commens
[sic] ).Current Behavior
It shows the contents of an aside/widget (
div.article-subscribe
)Steps to Reproduce
Possible Solution
IIRC, other parsers will take the length into account when the markup doesn't use good semantics. It's probably safe to assume that the longest section is the main content.
That will never be perfect, though, so it could be really helpful to give the user a way to quickly swap between different elements, almost like a photo gallery slider. If the parser thinks there are 3 elements that are likely to hold the content, then it could show the one with the highest probability. Then, there could be left/right arrows on the edges the reader to swap between different elements.