Adjusted Dom.getElementsByAttribute() to throw an exception if an
invalid 'node' was provided, to escape the attribute value and allow
empty values