Archive for June, 2004

The W3C recently held a Workshop on Web Applications. Opera and mozilla have formed the Web Hypertext Application Technology (WHAT) Working Group. Microsoft is trying to force xaml upon the world. Things are getting interesting again.

Daniel Glazman has added an entry about three ways to emulate getElementsByClass. Of course, there’s another method if your document is xhtml: use xpath like this…

function getElementByClassName(needle) {
var xpathResult = document.evaluate(’//*[@class = "'needle'"]‘, document, null, 0, null);
var outArray = new Array();
var item;
while (item = xpathResult.iterateNext()) outArray[outArray.length] = item;
return outArray;

Code updated to address two minor [...]