Format code.
Returns correct element attribute (see http://www.w3.org/TR/html-markup/syntax.html#syntax-attr-empty).
Fix getValue(). Now it's uses a selenium commands, not js code (problems in Opera).