WaSP looks to order scripted chaos

Daily Newsletters

Sign up to ZDNet UK's daily newsletter.

NEWS

Web standards gadflies are launching an initiative to make sure Web authors are sticking to their scripts.

The Web Standards Project, often known as the WaSP, on Monday launched the DOM Scripting Task Force, whose goal will be to promote adherence to Web standards like the W3C's DOM and to establish guidelines in the comparatively unstandardised world of scripting.

"At the moment, JavaScript suffers from outdated, uninformed and inaccessible development methods which preclude it, and therefore Web development in general, from attaining its full potential," reads the task force's JavaScript manifesto. "The WaSP DOM Scripting Task Force proposes to solve this problem by the adoption of unobtrusive DOM scripting, a way of thinking based on modern, standards-compliant, accessible Web development best practices."

The W3C recommends the DOM as a way to let scripts act in discrete parts of Web pages. Scripting languages like JavaScript, Microsoft's JScript and ECMA's ECMAScript (which combines elements of the two) perform actions on Web pages independently, for example opening pop-up windows or flashing prompts to visitors.

A primary offence the task force will target is the one that spurred the creation of WaSP seven years ago: coding to one specific browser, usually Microsoft's market-leading Internet Explorer.

"Just because IE for Windows has 80 percent of the market doesn't mean it will work everywhere," said WaSP founding member Dori Smith, co-author of "JavaScript for the World Wide Web." "I see way too much of that, because I primarily use [Apple's browser] Safari. We've been making this argument for years now. It's more of the same. It's all about education."

In founding the task force, the WaSP described today's Web programming model as a three-legged stool, one leg being structure (XHTML), another presentation (CSS), the last behaviour (DOM scripting).

The group identified "obtrusive" DOM scripting as the reason for scripts' bad reputation.

"The purpose of JavaScript is enhancing the usability of Web pages by adding interaction to them," reads the manifesto. "Unfortunately this purpose more often than not was an excuse for programmers to display their technical knowledge by inflicting pop-ups, scrolling status bar messages, animated layers, and other GUI elements of questionable value on unsuspecting end users. Worse, these sites' accessibility efforts were too often limited to saying 'Sorry' to users of the wrong browser."

Scripting has generated renewed interest as Google, in particular, has found success creating highly functional Web-based applications like its Gmail and Google Maps sites. Those sites are created using what recently earned the moniker AJAX.

Scripting also plays a prominent role outside the browser. Macromedia's Dreamweaver, for example, uses scripts within the application. Widgets in Apple's Tiger operating system also use them.

The renaissance in Web scripting has come at a cost to accessibility and adherence to Web standards, advocates warn.

Many pages that rely heavily on scripts do not present their content in a way that blind people and others with disabilities can access them. And Web authors who are intent on using the latest scripting techniques may leave older browsers choking on their code. WaSP wants authors to provide scripts that "gracefully degrade" with older browsers, providing some data and functionality, if not the full effect.

The WaSP task force launched with several posts from founding members. The group intends to compile "best practices" and goad high-profile sites with poor scripting methods to improve.

"People are so in love with the stuff that DOM scripting can do," Smith said. "They aren't saying, 'We need to support these older browsers and be accessible to people with disabilities.' We're saying you can do both. It's not either-or."

In other WaSP news, the group earlier this month said it was working with Microsoft on testing Version 7 of IE. WaSP, which for the first several years of its existence relished its outsider status and razzed Netscape and Microsoft for lapses in their standards adherence, has taken to working more closely with software providers in recent years. It maintains a similarly close relationship with Macromedia, for example, in evaluating the Dreamweaver tool.

"We're telling them up front that we want to work with them and make a better product," Smith said. "We want something everyone's happy with, at the end of it all."

Post your comment

In order to post a comment you need to be registered and logged in.

You can also log in with Facebook. Log in or create your ZDNet UK account below

  • Login

Will not be displayed with your comment

By signing up for this service, you indicate that you agree to our Terms and Conditions and have read and understood our Privacy Policy. Questions about membership? Find the answers in the Community FAQ

Get ZDNet UK's daily newsletter

Enter your email address to sign up

ZDNet UK Live

kevinmchapman

"Unity and GNOME 3 both abandon the old text-based cascading menus in favour of a graphical icon-driven system." Point truly missed. Both use a...

6 seconds ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
TerryRK

whs001 - Thank you, I'm glad you liked the article. I absolutely agree with you on your first point. I should perhaps have made it clearer that...

4 minutes ago by TerryRK on A tale of two distros: Ubuntu and Linux Mint
Dennis Nilsson

If we allow corporate interest to dictate the way our government circumvents due process against foreign entities then we should accept the same...

1 hour ago by Dennis Nilsson via Facebook on ACTA stumbles in Germany
GHar123

I totally dislike pirating of works, I fear that artists will be deterred from creating works if they think that they are going to get ripped off....

3 hours ago by GHar123 on ACTA stumbles in Germany
JCB33

How dare film makers, artists or anybody that invests in creativity stop us pirating their works for free. I want to be able to walk into my local...

9 hours ago by JCB33 on ACTA stumbles in Germany
Moley

@GrueMaster. I prefer horses for courses rather than one size fits all. I, and I suspect most other computer users, do not really wish to have...

11 hours ago by Moley on A tale of two distros: Ubuntu and Linux Mint
greycynic

The product that scares me every time I have to use it is the Office 2007 version of Excel. The first bug that I found was applying the median...

11 hours ago by greycynic on Ten flawed products that derail productivity
GrueMaster

Nice review and very informative. One thing I'd like to add (in reply to whs001's 1st question), the main reason to have the same interface from...

12 hours ago by GrueMaster on A tale of two distros: Ubuntu and Linux Mint
Frederick Wrigley

I'be been using Mint 12 since the RC came out, and I am far more happy with the Cinnamon, the Mate, and, yes (with extensions), theGnome 3...

13 hours ago by Frederick Wrigley via Facebook on A tale of two distros: Ubuntu and Linux Mint
bdantas

Excellent article. One small correction, though--although a fresh installation of Linux Mint 12 will, indeed, provide the user with a version of...

14 hours ago by bdantas on A tale of two distros: Ubuntu and Linux Mint
Alan Ralph

In related news, the ISPs club together to get the members of the Home Affairs Select Committee (ya goofed on that part, ZDNet UK) copies of "The...

14 hours ago by Alan Ralph via Facebook on MPs urge ISPs to take down terrorist material
Alan Ralph

In related news, the ISPs club together to get the members of the Home Affairs Select Committee (ya goofed on that part, ZDNet UK) copies of "The...

14 hours ago by Alan Ralph via Facebook on MPs urge ISPs to take down terrorist material
Moley

For Gnome 2 die-hards, it is possible to add icons to the bottom panel (or top top panel, if you prefer) which provide the exact Gnome 2...

15 hours ago by Moley on A tale of two distros: Ubuntu and Linux Mint
ramwellian

Your comments would seem pretty naive and immature. Your 'solution' appears to be, "gee, let's all just give in to the hackers and give them...

15 hours ago by ramwellian on Cloud computing security: no more oxymoron?
BugStalker

"Interesting thought ... If you installed Win7 as a dual boot on a machine that previously only had Linux, and it wrecked your Linux installation,...

16 hours ago by BugStalker on Windows 7 Declares War on GRUB
whs001

This is an excellent summary of Ubuntu and Mint and the interface differences between them. Most such articles take a very partisan position for...

16 hours ago by whs001 on A tale of two distros: Ubuntu and Linux Mint
Moley

@ewallace. Not so clear. Anyone can obtain the text, for example from here http://www.ustr.gov/webfm_send/2379. I support ACTA so long as it and...

16 hours ago by Moley on ACTA: Facts, misconceptions and questions
45283

I think WinRT is fantastic. I just wish it was an option for people that didn't want to go through Microsoft's App Store with its attendant...

19 hours ago by 45283 on Why Windows 8 needs architectural hygiene for WOA
Burn-IT

Nine people? £30m? Who's back pocket is that lot going in? And IF they say it is for new buildings, what about all the ones the government has...

20 hours ago by Burn-IT on Police set to launch three £30m e-crime hubs
ewallace

Just to be clear, nobody knows what is in the text of ACTA, here is a photograph of the text of ACTA http://twitpic.com/8h9iju as submitted to the...

20 hours ago by ewallace on ACTA: Facts, misconceptions and questions