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
- Gemini 2.0 Flash: An outstanding multi-modal LLM with a sci-fi streaming mode - 11th December 2024
- ChatGPT Canvas can make API requests now, but it's complicated - 10th December 2024
- I can now run a GPT-4 class model on my laptop - 9th December 2024