Open Bug 451147 Opened 17 years ago Updated 3 years ago

Forms in XHTML documents produced by XSLT with same-document actions fail to submit

Categories

(Core :: XSLT, defect)

x86
Windows XP
defect

Tracking

()

UNCONFIRMED

People

(Reporter: dvdckl, Unassigned)

Details

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1 When a form such as <form action="">...</form> is present in an XHTML document generated by XSLT, the page fails to create a GET or a POST request to the current page when submitted. The submit DOM event is fired, but no HTTP request is made. Note that this is a separate issue from bug 275689 because the form fails to submit at all, as opposed to submitting to an incorrect URI. Standalone XHTML pages, HTML pages, and HTML pages produced by XSLT are unaffected by this bug, making it seem similar to bug 230214. Fragment links, such as "#frag", do cause the form to generate an HTTP request when submitted. HTML base and xml:base do not affect the form when the action is "". Same-document URIs in anchor tags do trigger an HTTP request in XSLT documents produced by XSLT. The XSLT->XHTML test case (exhibits bug) and standalone XHTML test case (not affected by bug) are attached. A summary of several test cases is as follows: Doctype MIME type Using XSLT? Form submits? XHTML 1.0 Transitional application/xhtml+xml No Yes XHTML 1.0 Transitional text/xml No No XHTML 1.0 Transitional text/html No Yes XHTML 1.0 Transitional application/xhtml+xml Yes No XHTML 1.0 Transitional text/xml Yes No XHTML 1.0 Transitional text/html Yes Yes HTML 4.01 Strict text/html No Yes HTML 4.01 Strict text/html Yes Yes Reproducible: Always
Component: General → XSLT
Product: Firefox → Core
QA Contact: general → xslt
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: