As web developers we want to ensure what we build is accessible by as many people as possible, with as many web browsers, operating systems and devices as we can support. It is also hard to know what the future holds, and for that we have put together Writing forward-compatible websites
Topics covered
We see this as a living document, and so far we have information on topics like JavaScript, Feature and User Agent sniffing, Testing, Web browser-specific features and Code hygiene.
Complete contents
The complete content listing is:
- JavaScript
- Sniffing
- Testing
- Browser-specific features and prefixes
- Don’t target hacks at current or future versions of browsers
- Avoid depending on cutting-edge nonstandard features
- When using cutting-edge features (even standard ones) that are not universally implemented, make sure to test fallback paths
- Don’t use vendor-prefixed features except to target old buggy versions
- Don’t use unprefixed versions of CSS properties or APIs until at least one browser supports them
- Code hygiene
Contribute!
Please let us remind you that MDN is a community effort, and that you are free to edit the wiki and come up with useful and informative additions.
We look forward to your ideas!
About Robert Nyman [Editor emeritus]
Technical Evangelist & Editor of Mozilla Hacks. Gives talks & blogs about HTML5, JavaScript & the Open Web. Robert is a strong believer in HTML5 and the Open Web and has been working since 1999 with Front End development for the web - in Sweden and in New York City. He regularly also blogs at http://robertnyman.com and loves to travel and meet people.