@SelenIT The following is more performant: ```js Array.from(document.querySelectorAll('a img', img => { let el = img; while ((el = el.parentElement)) { if (el.localName.toLowerCase() == 'a') return el; } return null; }); ``` -- GitHub Notification of comment by ExE-Boss Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3925#issuecomment-519362052 using your GitHub accountReceived on Thursday, 8 August 2019 04:49:42 UTC
This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:27:02 UTC