4 ms·
It's because the accordion is made with CSS only and it uses the :target pseudo-class. The back button is not "hijacked" :)
by redmaniack 15y ago
It's because the accordion is made with CSS only and it uses the :target pseudo-class. The back button is not "hijacked" :)
- pavel_lishin 15y agoYes, it is, because it's not doing what I expect it to do. It's neat, but it's still hijacking.
- ugh 15y agoWhy is it not doing what you expect it to do? When content on a page changes, an entry should be added to the history.
- pavel_lishin 15y agoI don't think that everyone is still used to it. Many pages have scrolling ticker-style feeds - hitting "back" doesn't rewind that.
- ugh 15y agoI would argue that entries to the history should be added when user interaction was involved and when a significant amount of the content has changed.