Links with nested html: like <a href='https://github.com'><div><div><div> link text </div></div></div></a>
Expected
href of link is opened,
Actual
Blank new tab is opened
Resolution
Recursively drill upwards, looking for the first parent <a> tag.
I've picked an arbitrary cut-off of '10' levels to drill up.
when no parent A tag is found within 10 parents, it will instead default to null/blank new tab.
Thank you for open-sourcing this project.
I've been using another chrome-extensions that had been hijacked (and became spyware). I've found this one as a fine replacement.
I appreciate the work you've done with this extension, It greatly improves my day-to-day browsing.
Add support to find
<a>
tags further up the treeIssue description
Gesture action 'Open new tab' can be started on a link, instead of a blank new tab, the link target/href should open.
This works fine for:
<a href='https://github.com'>link text</a>
<a href='https://github.com'><img src="https://placekitten.com/20/20"/></a>
This did not work for:
<a href='https://github.com'><div><div><div> link text </div></div></div></a>
Expected
href of link is opened,
Actual
Blank new tab is opened
Resolution
Recursively drill upwards, looking for the first parent
<a>
tag. I've picked an arbitrary cut-off of '10' levels to drill up. when no parent A tag is found within 10 parents, it will instead default to null/blank new tab.Example page:
https://jsfiddle.net/7sm5092y/1/
Closing notes
Thank you for open-sourcing this project.
I've been using another chrome-extensions that had been hijacked (and became spyware). I've found this one as a fine replacement. I appreciate the work you've done with this extension, It greatly improves my day-to-day browsing.