This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 11161 - form.action, button.formAction and input.formAction IDL attributes should return the document location when the content attribute is the empty string
Summary: form.action, button.formAction and input.formAction IDL attributes should ret...
Status: CLOSED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML5 spec (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: data:text/html,<!DOCTYPE html><html><...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-28 21:22 UTC by Mounir Lamouri
Modified: 2011-08-04 05:12 UTC (History)
5 users (show)

See Also:


Attachments

Description Mounir Lamouri 2010-10-28 21:22:28 UTC
Currently, those attributes reflects the content attribute as an URL so when the content attribute is the empty string, it will return the base URL but the form submission algorithm specifies that when action="", the submission URL should be the document location.
It would be nice to have the IDL attributes reflecting this specificity.
Comment 1 Ian 'Hixie' Hickson 2010-12-27 23:43:57 UTC
What do browsers do today with .action?
Comment 2 Mounir Lamouri 2010-12-28 10:37:09 UTC
Testcase in the URL.

Opera 11, Gecko 1.9 (and trunk) and IE6 return the empty string.
Webkit returns the document location.

So, no one returns what the spec require: the base URL. I guess we should change the spec to follow what is the legacy behavior or spec the logical one which might not be too dangerous if Webkit did it.
Comment 3 Ian 'Hixie' Hickson 2011-01-13 00:01:35 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: Concurred with reporter's comments.
Comment 4 contributor 2011-01-13 00:02:48 UTC
Checked in as WHATWG revision r5785.
Check-in comment: make .action and .formAction handle the empty string more like the content attribute gets processed, for sanity (even though that value is technically not valid anyway)
http://html5.org/tools/web-apps-tracker?from=5784&to=5785
Comment 5 Michael[tm] Smith 2011-08-04 05:12:22 UTC
mass-move component to LC1