Closed Bug 281210 Opened 20 years ago Closed 20 years ago

form action is not relative to specified base

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 280470

People

(Reporter: bps7j, Assigned: bugzilla)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

The "action" attribute of the form is not resolved relative to the base url
specified for the page, when present.  Instead it is considered relative to the
current page.

Reproducible: Always

Steps to Reproduce:
1. Load the test case I will attach
2. Right-click and view page info, then the Forms tab
3. Notice that the form's action is not relative to http://www.mozilla.org.

Actual Results:  
The form's action is relative to the file's current location.  In this case
since it's on my hard drive, that is file:///relative-to-mozilla-dot-org instead
of http://www.mozilla.org/relative-to-mozilla-dot-org.

Expected Results:  
The form's action should have been
http://www.mozilla.org/relative-to-mozilla-dot-org as specified by
http://www.w3.org/TR/html4/struct/links.html#edef-BASE
Attached file Test case
http://www.steelgryphon.com/testcases/281210.html

Page Info doesn't resolve the URI, see the testcase linked above to see this in
action.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Well, yeahbut: that's Page Info displaying a bug in our DOM, which reflects a
bug in the DOM 2 HTML spec. (I should have looked farther before titling bug
280470, but the patch covers form.action as well as image inputs.)

*** This bug has been marked as a duplicate of 280470 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → DUPLICATE
Yep.  See
http://lxr.mozilla.org/seamonkey/source/content/html/content/src/nsHTMLFormElement.cpp#1322
for where forms compute their action URI when they submit.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: