The document discusses unobtrusive JavaScript and accessibility requirements for websites built for Dutch government agencies. It notes that JavaScript should progressively enhance functionality without preventing base functionality, scripts that affect links should extend rather than replace default link behavior, and elements shouldn't require scripts to be meaningful in HTML. It also discusses separating content, design, and behavior; adding behaviors via class attributes; ensuring nothing breaks; and enhancing accessibility with JavaScript.
9. As of 1st September 2005, every web site
built for a dutch government agency is
required by law to conform to:
Valid HTML 4.01 or XHTML 1.0
CSS and semantic HTML and separation of structure and presentation
Progressive enhancement
The W3C DOM (instead of the old Microsoft document.all)
Meaningful values of class and id
Meaningful alt attributes on all images
Scripts that work on links should extend the basic link functionality (think accessible popups)
If a link makes no sense without a script, it shouldn't be in the HTML (but be generated by JavaScript)
Use of forms or scripts as the only means of getting certain information is prohibited
Removing the focus rectangle on links is prohibited
Information offered in a closed format (think Word) should also be offered in an open format
The semantics of many HTML elements are explicitly deïŹned
23. <b><font size=quot;5quot;><font color=quot;#0000FFquot;>THIS
SITE IS UNDER CONSTRUCTION!!</font></font></b>
<style>
p.construction {
color: #00f;
font-size: 1.5em;
font-weight: bold;
}
</style>
<p class=quot;constructionquot;>
THIS SITE IS UNDER CONSTRUCTION!!
</p>