Closed Bug 340017 Opened 18 years ago Closed 15 years ago

document.formName doesn't work in XHTML

Categories

(Core :: DOM: Core & HTML, defect)

PowerPC
macOS
defect
Not set
normal

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
Attached file testcase (XHTML)
Does it work if you do it from onload?
It doesn't work if I put "javascript:alert(document.frmAuto)" in the address bar.
Component: DOM: HTML → DOM: Core & HTML
QA Contact: ian → general
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
Keywords: student-project
Whiteboard: [good first bug]
Attached patch PatchSplinter Review
Assignee: general → wesongathedeveloper
Status: NEW → ASSIGNED
Attachment #408252 - Flags: review?(bzbarsky)
Attachment #408252 - Flags: review?(bzbarsky) → review+
Comment on attachment 408252 [details] [diff] [review]
Patch

r=bzbarsky.  My apologies for the lag here...
I'll push the patch once the tree reopens.
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.

Attachment

General

Creator:
Created:
Updated:
Size: