Is The UK Government Being Too Strict?
Posted by Brian Kelly on 9 February 2009
I recently noticed a blog post published on the home page of the WASP (Web Standards Project) Web site. The blog post, UK government browser guidelines: good sense prevails by Bruce Lawson, Opera applauded the UK Government for responding to pressure from the Web standards and Web development communities on its guidelines aimed at providers of UK Government Web services. The document initially stated that
… webmasters need not test in less popular browsers (those with less than 2% in that site’s usage statistics) and that there should be a page on the site listing the popular browsers which had been tested with the message “We advise you to upgrade your browser version as far as your computer allows and if possible to one of those listed above”.
Following over 400 emails made in response to a plea from Bruce, Adam Batenin, author of the document, published a revised browser testing guidelines, and, according to Bruce “he’s done a great job of including best-practice development.” I too welcome that change.
However the guidelines also state (paragraphs 21-23) that:
All (X)HTML content must validate with respect to your chosen DTD.
Now although I’d agree with Bruce in his comments on the “importance of valid code” I feel that a formal requirement that all (X)HTML content must validate with the appropriate DTD will be counter-productive.
We should recognise that the vast majority of HTML content does not comply with HTML standards – and it will be difficult for one sector to deviate substantially from the norm. This situation is likely to be made worse as use of embedded Web 2.0 technologies grows (e.g. YouTube videos of the Prime Minister embedded in UK Government pages) as embedding these services typical causes HTML validation problems.
Now such problems are (primarily) the responsibility of the third party Web 2.0 providers. And here we should be lobbying them to ensure that code to embed their content does not break HTML standards. But they might argue that, as global services, they need to be very conservative in making changes to services which work, even if they don’t necessarily comply to published HTML DTDs. The companies could argue that they are being user-focussed in such considerations, as isn’t there some truth in this? I can recall one hard-line ‘standardista’ who, on being told that a (University-developed) service didn’t render correctly in Internet Explorer, was told that the user should upgrade to a standards-compliant browser. And of course the university’s provided browser, was Internet Explorer! Such indulgences may occur in the public sector, but a commercial company which behaved likewise would soon find itself out of business.
As well as concerns that a formal requirement that UK Government Web pages must be fully HTML compliant may mean that pages aren’t rendered by the (flawed) browsers which people use, there is also a danger that this requirement will stifle developments and innovation in Government.
HTML itself has, sadly, proven a difficult language to evolve over time. We are now in a position in which the usability and accessibility benefits which sensible use of AJAX technologies can provide and being made accessible to, for example, screen-reading software and assistive technologies through a standard known as ARIA. However use of WAI-ARIA (to use its official name) will normally mean that strict HTML compliance will not be possible. And when I’ve raised this issue with people involved in development of the standards and assistive technologies the response I have consistently received is that accessibility benefits which can be provided shown be prioritised over strict HTML. And this view has been endorsed in WCAG 2.0, which has dropped WCAG 1.0′s formal requirement for HTML compliance, requiring, instead, that markup elemnts are currectly opened and closed.
I would therefore suggest that the guidelines document should state that:
(X)HTML content should validate with respect to your chosen DTD.
After all, if the Web Standards Project Web site isn’t able to fully comply with the standards, should we expect every government Web site to?
And let’s also remember that these requirements only apply to (X)HTML content. If these requirements are too difficult to achive, won’t we see content being trapped in PDFs? You might, for example, like to think that the Digital Britain – Interim Report would be available as a HTML resource, but no, it’s only available in PDF and MS Word formats. But at least the such PDF documents won’t fail the government guidelines I’ve described. Let’s not pretend that mandating conformance with HTMLK guideines will result in better HTML documents. I’m convinced that it won’t – it will result in documents being provided in formats such as PDFs. And who bothers checking that PDFs conform with PDF standards?