[whatwg] Web Forms 2.0 (WD 30 June 2004): 'separator' Attribute
dmh at dmh.org.uk
Wed Jun 30 16:11:09 PDT 2004
Hello WHAT Task Force,
I would like to suggest an additional, optional attribute for the 'form'
element, called 'separator'. It would also be valid for 'input'
elements with a 'type' attribute of either 'submit' or 'image'.
<form action="process-form.py" method="get" separator=";">
'separator' accepts either a semicolon character or an ampersand
character (the default).
The attribute changes the behaviour of forms sent with the
application/x-www-form-urlencoded content type. When 'separator' is set
to ';', a semicolon character rather than an ampersand character is used
to separate name/value pairs as described in Web Forms 2.0 (WD 30 June
2004) Section 5.3, point 5.
In the case where a 'separator' attribute is missing from a submit
button (<input type="submit"> or <input type="image">), then the
equivalent attribute on the form is used instead.
It has no effect on forms submitted by content types other than
The 'separator' attribute is similiar to the 'separator' attribute of
the XForms 1.0 'submission' element, except for the different default
value. (The difference is to ensure backwards compatibility with HTML
forms.) The existence of this attribute would hopefully ease migration
from Web Forms 2.0 to XForms when the time is right.
Here's a fragment of XSchema for it:
<xsd:attribute name="separator" use="optional" default="&">
More information about the whatwg