Closed Bug 142529 Opened 23 years ago Closed 23 years ago

JavaScript Form Submit doesn't work in an XML/XSL page

Categories

(Core :: XML, defect)

x86
Windows 2000
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 130161

People

(Reporter: nandakumar.devanathan, Assigned: hjtoi-bugzilla)

Details

Attachments

(3 files)

From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) BuildID: 2002041711 When I try to do a form submit through JavaScript in HTML it works fine. But, when I try to do the same in an XML/XSL doc, it doesn't submit the form and I keep getting an error that says "document.FormName has no properties". Please see the attached files for details. Reproducible: Always Steps to Reproduce: 1. Try doing a JavaScript Form submit through XML/XSL. Actual Results: Works in HTML and not in XML/XSL.
This is because we generate XHTML with the transform and document.formName is invalid in XHTML documents in Mozilla. If you use document.getElementById or other DOM Core methods (not DOM HTML methods, or DOM0 methods as you are attempting to do) you should be fine. :) *** This bug has been marked as a duplicate of 130161 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
In Mozilla the transfomed document is really XHTML. We have a bug that the HTML DOM properties don't work in XHTML. That is bug 111514. What this is duped against is only going to fix things for XSLT transformations, I believe. But that seems to be what you are interested in, so it should be ok for you.
QA Contact: petersen → rakeshmishra
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: