MakeBetter / Units

Enhanced navigation on the web
1 stars 0 forks source link

Facebook: The main element is not correctly highlighted at times, even if selector specified in urlData #176

Closed tanushree0 closed 10 years ago

tanushree0 commented 10 years ago
<a>
    <image>
    </image>
</a>

For anchors with markup like the above, sometimes (depending on the CSS applied of course), the <a> element has a height/ width of 0 BUT its children have a valid height/ width. These links, though valid in a way, would not get selected by our code because we have a check against invisible elements.

To fix this issue of some valid main elements not getting selected, we've removed this check (HTML is messy! :/)

Fixed state of code: