Dithered DOM scripts
19th March 2003
Dithered.com’s DOM Scripts follow an interesting philosophy:
One thing that always bothered me about DHTML APIs in particular is that you introduce a whole set of non-standard properties and methods in order to deal with the fact that not all browsers implement the standard properties and methods. You should attempt to preserve a standard as best you can. For instance, in order to get a reference to an element, the standard defines document.getElementById(). For systems that don’t support this method, you could create a method of the document object with the name getElementById that mimics the standard behaviour. That way, you aren’t married to a non-standard API and won’t be screwed when the developer stops supporting it or a new browser introduces something that breaks the API.
More recent articles
- OpenAI DevDay: Let’s build developer tools, not digital God - 2nd October 2024
- OpenAI DevDay 2024 live blog - 1st October 2024
- Weeknotes: Three podcasts, two trips and a new plugin system - 30th September 2024