Closed Bug 267539 Opened 20 years ago Closed 20 years ago

miscellaneous xforms submission bugs

Categories

(Core Graveyard :: XForms, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.8beta1

People

(Reporter: darin.moz, Assigned: darin.moz)

References

Details

Attachments

(2 files, 1 obsolete file)

miscellaneous xforms submission bugs:

1) EvaluateNodeBinding fails if <submission> element doesn't have a bind or ref
attribute, but the XForms 1.0 spec says that we should assume a ref of "/" by
default.  That rule applies to <submission>, but not to ordinary form controls.

2) Not able to submit with ref="/" since in that case XPath gives us a
nsIDOMDocument as the single node result.  In that case we don't want to call
GetOwnerDocument, we just want to QI the resulting node to nsIDOMDocument.

3) Support submission to a relative URL.
Attached patch v1 patchSplinter Review
Attachment #164461 - Flags: review?(bryner)
Attachment #164461 - Flags: review?(bryner) → review+
fixed-on-trunk
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.8beta
Comment on attachment 164461 [details] [diff] [review]
v1 patch

   // uriSpec is already ASCII-encoded and absolutely specified
   nsCOMPtr<nsIURI> uri;
-  ios->NewURI(uriSpec, nsnull, nsnull, getter_AddRefs(uri));
+  ios->NewURI(uriSpec, nsnull, doc->GetDocumentURI(), getter_AddRefs(uri));

does that mean the comment is wrong? because if uriSpec were absolutely
specified, you wouldn't need to pass a base uri...

(and in case the comment is wrong about ASCII too, you could pass
doc->GetDocumentCharacterSet().get() ;) )
Attached patch v2 patch (obsolete) — Splinter Review
thanks biesi!  i agree :)
Attached patch v2.1 patchSplinter Review
ok, that last patch included a bunch of fixes for xforms errata.  it wasn't
quite complete.  here's a better version.
Attachment #164492 - Attachment is obsolete: true
Attachment #164497 - Flags: review?(bryner)
Attachment #164497 - Flags: review?(bryner) → review+
v2.1 patch checked in on trunk.
Blocks: 263086
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: