Test cases added in r96384 uncovered an issue with this -- the attribute fetch code was silently falling back to using the text value on IE 6 and 7, which don't have the hasAttribute and getAttribute DOM methods.
r96509 fixes it, yay!
Switched status from OK to Resolved.