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
- Notes from Bing Chat—Our First Encounter With Manipulative AI - 19th November 2024
- Project: Civic Band - scraping and searching PDF meeting minutes from hundreds of municipalities - 16th November 2024
- Qwen2.5-Coder-32B is an LLM that can code well that runs on my Mac - 12th November 2024