Add fallback to element ID

If an element with matching "name" attribute is not found, look for one
with matching "id" attribute instead. If element is not an input, set
HTML content instead of value.

Makes it easier to use Floodling to fill non-inputs like divs and spans.