Docs-Online-Viewer icon indicating copy to clipboard operation
Docs-Online-Viewer copied to clipboard

Shows multiple icons for each link in DuckDuckGo

Open adeekshith opened this issue 9 years ago • 2 comments

dov-4 3 9-ddg-icon-bug

I think, the DOV icon should only b displayed only when the element is displaying text (has innerHTML). This could probably solve the issue.

adeekshith avatar Nov 10 '15 23:11 adeekshith

Commit 11ac3a3 replacing innerText with textContext reopened this. textContext was used for Firefox compatibility (also it is a web standard).

Possible but not so correct solution could be to check innerText and use textContext only when innerText is not valid. This reference may give some hint.

adeekshith avatar Nov 17 '15 06:11 adeekshith

Difference between innerText and textContent: http://www.kellegous.com/j/2013/02/27/innertext-vs-textcontent/

adeekshith avatar Nov 17 '15 16:11 adeekshith