Closed
Bug 340017
Opened 19 years ago
Closed 16 years ago
document.formName doesn't work in XHTML
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jruderman, Assigned: wesongathedeveloper)
Details
(Keywords: html5, student-project, testcase, Whiteboard: [good first bug])
Attachments
(3 files)
Splitting from bug 339944 and from bug 109373 (which was marked as a dup of bug 111514).
Loading the testcase should do a Google search for "whee". Instead, it says document.formName is undefined.
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a1) Gecko/20060525 Minefield/3.0a1
Reporter | ||
Comment 1•19 years ago
|
||
Reporter | ||
Comment 2•19 years ago
|
||
![]() |
||
Comment 3•19 years ago
|
||
Does it work if you do it from onload?
Reporter | ||
Comment 4•19 years ago
|
||
It doesn't work if I put "javascript:alert(document.frmAuto)" in the address bar.
![]() |
||
Comment 5•19 years ago
|
||
Ah, ok. So it looks like this is purposeful. See
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/content/html/document/src/nsHTMLDocument.cpp&rev=3.680&mark=3329-3333#3323
for the relevant code.
Reporter | ||
Comment 6•16 years ago
|
||
HTML5 says:
"When the HTMLDocument object is indexed for property retrieval using a name name, then the user agent must return the value obtained using the following steps..."
and:
"All Document objects (in user agents implementing this specification) must also implement the HTMLDocument interface, available using binding-specific methods. (This is the case whether or not the document in question is an HTML document or indeed whether it contains any HTML elements at all.)"
Keywords: html5
![]() |
||
Updated•16 years ago
|
Keywords: student-project
Whiteboard: [good first bug]
Assignee | ||
Comment 7•16 years ago
|
||
Assignee: general → wesongathedeveloper
Status: NEW → ASSIGNED
Attachment #408252 -
Flags: review?(bzbarsky)
![]() |
||
Updated•16 years ago
|
Attachment #408252 -
Flags: review?(bzbarsky) → review+
![]() |
||
Comment 8•16 years ago
|
||
Comment on attachment 408252 [details] [diff] [review]
Patch
r=bzbarsky. My apologies for the lag here...
![]() |
||
Comment 9•16 years ago
|
||
I'll push the patch once the tree reopens.
![]() |
||
Comment 10•16 years ago
|
||
Pushed http://hg.mozilla.org/mozilla-central/rev/9a8561e57279
Thank you again for the patch!
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•