Overwrite img src with data-src #408
Conversation
Many website (e.g. Wechat) sets a placeholder for img src and loads the actual URL lazily. Mozilla Readability attempted to recognize and handle it, but the logic is narrow and does not cover many cases. Instead, this code change aggressively assume that we can overwrite img src with data-src, etc.
|
@wanderor |
|
Hi @plateaukao On second thought, maybe let's hold this pull request for a while? FYI, one test URL would be: |
|
@wanderor |
Many website (e.g. Wechat) sets a placeholder for img src and loads the actual URL lazily. Mozilla Readability attempted to recognize and handle it, but the logic is narrow and does not cover many cases. Instead, this code change aggressively assume that we can overwrite img src with data-src, etc.
Also: Log console.log()