How many times were you able to reproduce it?
Everytime when I run wikipedia-ios in iOS simulator 9.3 (10.3 works well)
Steps to reproduce
- build Wikipedia target and run it in iOS simulator iPhone 5 - iOS 9.3
- open any article with leading image
- image describing the article is absent at top of the page
Expected results
it should be an image in top of article
really works well in iOS simulator 10.3.1
Actual results
no image
Screenshots
Environments observed
App version: 5.5.1
OS versions: macOS 10.12 iOS simulator sdk 9.3
Device model: simulator iphone 5
Device language: en
Regression?
I don't know
Reason
redLinkAnchorsInContent returns NodeList and applies forEach method for it, but it looks like forEach is supported for NodeList in 10+ version of Safari (webkit) (https://developer.mozilla.org/en/docs/Web/API/NodeList#Browser_compatibility)
not working
redLinkAnchorsInContent(content).forEach
fix
Array.from(redLinkAnchorsInContent(content)).forEach
