Closed
Bug 292754
Opened 19 years ago
Closed 19 years ago
[FIXr]A number of URL properties of HTML elements are not resolved (e.g. cite of ins)
Categories
(Core :: DOM: Core & HTML, defect, P2)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
People
(Reporter: minghong, Assigned: bzbarsky)
Details
Attachments
(2 files)
1.08 KB,
application/xhtml+xml
|
Details | |
896 bytes,
patch
|
jst
:
review+
jst
:
superreview+
dbaron
:
approval1.8b2+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3 Related URLs are not resolved to full URL for a number of properties included in DOM HTML. These include: - cite of ins/del; - action of form; - src of input; and - useMap of a number of elements like image and object. See also http://en.wikipedia.org/wiki/Comparison_of_layout_engines_%28DOM%29 for a complete list of such attributes. Reproducible: Always Steps to Reproduce: 1. Get the property value of such attribute Actual Results: Same as that returned from getAttribute(). Expected Results: Should be treated as URL, e.g. "a/b/c" -> "http://localhost/a/b/c"
Reporter | ||
Comment 1•19 years ago
|
||
Comment 2•19 years ago
|
||
I believe this is a duplicate of an invalid bug. Why should attribute values be resolved?
Reporter | ||
Comment 3•19 years ago
|
||
Because the spec said so, e.g. http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_editmodule
Comment 4•19 years ago
|
||
Could you quote the part that says UAs need to resolve the URIs?
Reporter | ||
Comment 5•19 years ago
|
||
By the way, note that I said "property", not "attribute". They are 2 different things. Property should be resolved, but attribute shouldn't.
Reporter | ||
Comment 6•19 years ago
|
||
In Mozilla, if an attribute (e.g. href) is treated as a URI, its corresponsing property (e.g. this.href) would return the resolved URI. Try "href" of a/link, "cite" of q/blockquote. I can't found where the spec said so, but it seems to be the right treatment to URI attributes.
Assignee | ||
Comment 7•19 years ago
|
||
Please do NOT test DOM bugs in 1.7 builds. Those builds are over a year old in terms of DOM support at this point. In current builds, most properties defined as URIs in the DOM spec are resolved (in particular the action of forms and the src of inputs). Del and Ins do need to be fixed (and I'll attach a patch to do that). The behavior for usemap is not clear, since that's not defined as a URI in the DOM spec. There's another bug with some discussion on what to do with properties that are sort of URIs but not defined as such in the DOM (and this bug may be invalid; I can't recall). db48x, I remember you were poking at that; do you recall the bug#? Or was it just bug 213701?
Assignee | ||
Comment 8•19 years ago
|
||
Assignee: general → bzbarsky
Status: UNCONFIRMED → ASSIGNED
Attachment #182513 -
Flags: superreview?(jst)
Attachment #182513 -
Flags: review?(jst)
Assignee | ||
Updated•19 years ago
|
OS: Windows 2000 → All
Priority: -- → P2
Hardware: PC → All
Summary: A number of URL properties of HTML elements are not resolved (e.g. cite of ins) → [FIX]A number of URL properties of HTML elements are not resolved (e.g. cite of ins)
Comment 9•19 years ago
|
||
Comment on attachment 182513 [details] [diff] [review] Fix for ins/del r+sr=jst
Attachment #182513 -
Flags: superreview?(jst)
Attachment #182513 -
Flags: superreview+
Attachment #182513 -
Flags: review?(jst)
Attachment #182513 -
Flags: review+
Assignee | ||
Updated•19 years ago
|
Summary: [FIX]A number of URL properties of HTML elements are not resolved (e.g. cite of ins) → [FIXr]A number of URL properties of HTML elements are not resolved (e.g. cite of ins)
Assignee | ||
Comment 10•19 years ago
|
||
Comment on attachment 182513 [details] [diff] [review] Fix for ins/del Simple fix to an HTML property that got missed when I did the sweep of DOM URI properties.
Attachment #182513 -
Flags: approval1.8b2?
Attachment #182513 -
Flags: approval1.8b2? → approval1.8b2+
Assignee | ||
Comment 11•19 years ago
|
||
Fixed (for ins/del; as I said earlier the behavior for usemap seems to be correct per the DOM spec).
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•