A few days ago, I signed up to HuffDuffer (love the logo, BTW). However, once I’d registered, my profile page said Huffduffing since November 1st, 2008. Which was a little weird, as when I did this it was October 31st.
So I filed a bug report and Jeremy quickly spotted the problem: the server [...]
I’ve finally gotten around to finishing off the code that I’ve had sitting around in google code for over a year, and released jslint4java 1.2. The changes are actually pretty small:
Update to jslint 2008-09-04. This adds several new options.
Several updates to the ant task:
Move the antlib definition to “antlib:net.happygiraffe.jslint” (incompatible change).
Default to failing [...]
This is an issue that popped up with a colleague yesterday. Roughly, there was some code like this.
function setUpStuff() {
var items = cssQuery("#stuff p");
for (var i = 0; i < items.length; i++) {
var item = items[i];
[...]
I spent a little while looking at mootools yesterday for a colleague. It’s yet another JavaScript library. My colleague was wondering how to restrict the Accordion effect so it applied once to each area of content on the page, rather than once for the whole page (each content area has multiple bits of [...]
So yesterday, Jeremy asked:
Wondering if accents are valid in class names (so I can mark up some text as being of the class “cliché”)
It’s a damned good question. And you have to consider: character encodings; CSS; HTML; XHTML; JavaScript; HTTP. Needless to say, it’s more complicated than it looks at first.
My first thought [...]
I’ve been having a lovely day at work, fiddling with jQuery. I started to come up with some really gnarly selector chains though, and I wondered what nodes they were actually addressing.
So, I wrote a tiny jQuery extension that logs the current jQuery selection to the firebug console.
jQuery.fn.log = function (msg) {
[...]
On my recent project at work, I’ve instigated a number of features:
An XSLT stylesheet that strips out all inline JavaScript and inline CSS before it ever hits the browser. Go-go Unobtrusive JavaScript!
Lots of jUnit tests:
Every piece of static HTML gets validated via RelaxNG (we had to use RelaxNG in order to allow mixed namespaces).
Ditto [...]
I’ve put out a new version of jslint4java. The changes aren’t huge, but there are a couple of note:
Fix Issue 1: a NullPointerException when jslint gives up. This is doubly annoying because it’s both documented and it caught me out when writing the Perl wrapper, JavaScript-JSLint.
I’ve added an ant task so you can [...]
A while ago, I wrote a small wrapper around jslint in Perl: JavaScript-JSLint. However, it’s a real pain to use. There’s a dependency on JavaScript, which in turn needs a compiled version of spidermonkey.
On a recent Java project at $WORK, I wanted to use jslint as part of our unit tests—evil JavaScript be [...]
I started looking at a dashcode project the other day. Within a few minutes, I realised that I needed something like URI.pm, in order to resolve URIs into an absolute form. I had a quick look around and there didn’t seem to be anything code out there that does this.
So, I had a [...]