Both have action="", which is a valid representation of same-document reference, according to the URI specification (section 4.2 at ​http://www.ietf.org/rfc/rfc2396.txt).
However it's up to the browser to replace an empty URI reference with the base URI of the
current document when making a request.