Closed
Bug 340017
Opened 18 years ago
Closed 15 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•18 years ago
|
||
Reporter | ||
Comment 2•18 years ago
|
||
Comment 3•18 years ago
|
||
Does it work if you do it from onload?
Reporter | ||
Comment 4•18 years ago
|
||
It doesn't work if I put "javascript:alert(document.frmAuto)" in the address bar.
Comment 5•18 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•15 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•15 years ago
|
Keywords: student-project
Whiteboard: [good first bug]
Assignee | ||
Comment 7•15 years ago
|
||
Assignee: general → wesongathedeveloper
Status: NEW → ASSIGNED
Attachment #408252 -
Flags: review?(bzbarsky)
Updated•15 years ago
|
Attachment #408252 -
Flags: review?(bzbarsky) → review+
Comment 8•15 years ago
|
||
Comment on attachment 408252 [details] [diff] [review] Patch r=bzbarsky. My apologies for the lag here...
Comment 9•15 years ago
|
||
I'll push the patch once the tree reopens.
Comment 10•15 years ago
|
||
Pushed http://hg.mozilla.org/mozilla-central/rev/9a8561e57279 Thank you again for the patch!
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•