Closed
Bug 254112
Opened 22 years ago
Closed 22 years ago
input named 'name' confuses page info->forms
Categories
(SeaMonkey :: Page Info, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 136532
People
(Reporter: fejesjoco, Assigned: db48x)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a2) Gecko/20040714
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a2) Gecko/20040714
<form>
<input type=text name=name>
</form>
page info->forms will think that the form's name is:
[object HTMLInputElement]
Reproducible: Always
Steps to Reproduce:
Updated•22 years ago
|
Assignee: general → db48x
Component: JavaScript Engine → Page Info
QA Contact: pschwartau
Comment 1•22 years ago
|
||
My guess is that "name" is a reserved word, not that I can find a URL for it. In
any case, my test :-
name="asname"
worked as expected.
Marking as INVALID
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
i don't think it's reserved, nevertheless, if it were, mozilla should still
handle it...
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Comment 3•22 years ago
|
||
(In reply to comment #1)
> My guess is that "name" is a reserved word, not that I can find a URL for it.
"name" is not a reserved word. In the HTML4.01 DTD Strict (and XHTML1.0 Strict
too), the name attribute of the input element is marked as CDATA, and in the
CDATAs definiation, there is no such a part, that shown, that there is any
reserved word.
BTW, the specification is say, that: "For some HTML 4 attributes with CDATA
attribute values, the specification imposes further constraints on the set of
legal values for the attribute that may not be expressed by the DTD."
But I don't think, that this is apply for input's name attribute.
Other way, the DTD should mark the name attribute with type NAME, but in this
case, this could not be error.
Comment 4•22 years ago
|
||
OK, based on what http://validator.w3.org/check tells me, name=name is valid
HTML (at HTML v3.2 anyway). However, validator has been wrong before....
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 5•22 years ago
|
||
This is a duplicate of bug 160329. Can't somebody just change form.name to form.
getAttribute("name")? Same for encoding and target.
Comment 6•22 years ago
|
||
Status: NEW → RESOLVED
Closed: 22 years ago → 22 years ago
Resolution: --- → DUPLICATE
Updated•21 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•