eduardo's blog

Software testing

This is more of a note to self than anything else, related to an area that catches my attention: software testing/quality

http://wiki.github.com/aslakhellesoy/cucumber/
http://wiki.github.com/brynary/webrat/

getAttribute: Firefox vs Internet Explorer

Well, since IE 7 (7.0.5730.11) doesn't have a DOM array "attributes", if you want a cross-compatible solution to access the value of, let's say, the "onclick" attribute, you'd have to use:

theobject.getAttributeNode('onclick').value

Using "theobject.getAttribute('onclick')" does not work equally on Firefox and IE, that is, you couldn't expect setAttribute to work with its return value.

Syndicate content