4 ms·
Older browsers might go crazy
by hatu 14y ago
Older browsers might go crazy
- DoubleMalt 14y agoWho cares? If you use HTML5 you have to throw them under the bus anyway. And most (older) browsers ignore unknown attributes anyway.
- UnoriginalGuy 14y agoHTML5 in general degrades fairly well, with the exception of with browsers which simply don't support CSS at all (e.g. IE5 and below). You're right to say that older browsers would ignore the unknown attribute, the problem is that having links broken might degrade that site to a point where it isn't usable.
- DoubleMalt 14y agoBut it would be pretty easy to create a polyfill that attaches onclick handlers to the respective elements. Actually I'm tempted to write one to get this functionality with current browsers. [edit] As Oscar Wild put it: The only way of getting rid of a temptation is to yield to it. https://github.com/webcrofting/href4all https://github.com/webcrofting/href4all
- Torrents 14y agoThat's awesome! From concept to github in a flash. Well done.
- rsanders 14y agoThis would be a pretty easy thing to polyfill, I think.
- mathias 14y agoYou may want to read up on HTML Design Principles: <http://www.w3.org/TR/html-design-principles/> http://www.w3.org/TR/html-design-principles/>.