Closed
Bug 280470
Opened 21 years ago
Closed 21 years ago
input type="image" .src, form.action properties don't resolve relative URIs (should be absolute)
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
VERIFIED
FIXED
mozilla1.8beta1
People
(Reporter: philor, Assigned: bzbarsky)
References
Details
Attachments
(3 files, 1 obsolete file)
2.56 KB,
patch
|
jst
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
463 bytes,
text/html
|
Details | |
769 bytes,
text/html
|
Details |
The .src property for <img src="/foo.jpg"> returns http://example.com/foo.jpg,
but .src for <input type="image" src="/foo.jpg"> returns /foo.jpg. Since Page
Info just adds them both to the Media tab with elem.src, the <input>s are
broken, but I'm not sure if it's intentionally not resolved for input, and Page
Info should do its own resolving, or not.
Reporter | ||
Comment 1•21 years ago
|
||
![]() |
Assignee | |
Comment 2•21 years ago
|
||
So.. in the DOM2 HTML spec, HTMLImageElement.src is defined to be a URI, but
HTMLInputElement.src is just a string (no mention of URI or [IETF RFC 2396] like
for other url properties.
jst, is that just an oversight in the spec?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reporter | ||
Comment 3•21 years ago
|
||
HTMLFormElement.action is also just a string, though everything else I could
think of, down to HTMLQuoteElement.cite, is a URI.
Comment 4•21 years ago
|
||
Sounds like oversights to me, I can't remember these specific properties being
discussed in the DOM WG.
![]() |
Assignee | |
Comment 5•21 years ago
|
||
This is the right thing, I think.
Attachment #173705 -
Flags: superreview?(jst)
Attachment #173705 -
Flags: review?(jst)
Reporter | ||
Comment 6•21 years ago
|
||
*** Bug 281210 has been marked as a duplicate of this bug. ***
Comment 7•21 years ago
|
||
Comment on attachment 173705 [details] [diff] [review]
Patch
r+sr=jst
Attachment #173705 -
Flags: superreview?(jst)
Attachment #173705 -
Flags: superreview+
Attachment #173705 -
Flags: review?(jst)
Attachment #173705 -
Flags: review+
![]() |
Assignee | |
Comment 8•21 years ago
|
||
Fixed.
Assignee: general → bzbarsky
OS: Windows XP → All
Hardware: PC → All
Target Milestone: --- → mozilla1.8beta1
![]() |
Assignee | |
Updated•21 years ago
|
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 9•20 years ago
|
||
*** Bug 294353 has been marked as a duplicate of this bug. ***
Comment 10•20 years ago
|
||
*** Bug 295587 has been marked as a duplicate of this bug. ***
Updated•20 years ago
|
Summary: input type="image" .src property doesn't resolve relative URIs → input type="image" .src, form.action properties don't resolve relative URIs (should be absolute)
Comment 11•20 years ago
|
||
Attachment #172915 -
Attachment is obsolete: true
Updated•20 years ago
|
Attachment #203834 -
Attachment is patch: false
Attachment #203834 -
Attachment mime type: text/plain → text/html
Comment 12•20 years ago
|
||
Marking verified per last attachment
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•