Fixed the input type retrieval

The type should be retrieved through the DOM property rather than the attribute to ensure that the default value of "text" is used when the attribute is not there.
It also adds a few case missing normalizations and cleans the access to a few other properties.

This fixes one of the failing tests.

Closes #108
I bet we don't lowercase element's type in other drivers as well.