4 ms·
How does a misused anchor tag cause you "time and nerves?"
by pc86 6y ago
How does a misused anchor tag cause you "time and nerves?"
- gostsamo 6y agoYou reach a door, you twist the handle, a window at the other end of the room opens. Not sure how to explain it better.
- dathinab 6y agoAs mentioned in the article it can make all kind of tool and normal browser interactions misbehave. I'm frequently annoyed by it, too. But it had gotten much better.
- chiyc 6y agoOne example is one of the first bugs I ever fixed as a working developer. A click event was broken on Firefox only because of a nested anchor and button element. As interactive elements, they shouldn't be nested according to the HTML spec, but it's common for developers to reuse button styles on a link by wrapping it with the button element. The behavior is undefined, which resulted in it working okay on Chrome but not Firefox.