Discussion:
CDATA
(too old to reply)
Stanimir Stamenkov
2005-10-03 21:53:01 UTC
Permalink
[x-posting to netscape.public.dev.html, follow-up to
netscape.public.dev.html]
Excuse my ignorance and the slightly OT post ...
Much off-topic as seems your question is purely HTML one. You might
consider posting to "comp.infosystems.www.authoring.html" and/or
"alt.html" in addition to the "netscape.public.dev.html" I'm
cross-posting to now.
The W3C recommendations state the value of "name=" properties in HTML are of
type CDATA. It is my understanding that reads as pretty much anything goes.
Is that a fair interpretation?
These are no properties - these are attributes. Every element
defines its own list of attributes, where same named attributes of
different type could appear under different elements.

The 'name' attribute of anchor elements can't have their values
duplicated, but because DTD rules only one attribute of type ID may
be declared for an element it is declared of type CDATA (the 'id'
attribute is of type ID already).

The 'name' attribute of form elements could have a same value for
multiple elements where all of the same named form values may get
submitted.
The reason I ask (other than the nonresponsiveness elsewhere and that I know
there are some really sharp cookies here) is that I'm building a form with a
pair of Submit buttons for each row. Each Submit button will be an <input
type="image">. The down side is that 2 sets of values are returned: "name".x
and the x coordinate within the image clicked, and "name.y and the y
coordinate within the image clicked. I intend to make the "name" an action
plus a key value and I'll later parse out the action and key at the server.
The key could contain just about anything.
Any guidance will be appreciated.
I fail to understand your question, but:

The "phenomenon" of submitting <name>.x and <name>.y pairs for image
submit controls is well documented in the specification. Submit
controls are not suitable for carrying out a value since their value
is often used for the textual label of the control. If you want to
submit a specific value (the key) - place it in a hidden field.
--
Stanimir
MyndPhlyp
2005-10-04 02:10:11 UTC
Permalink
"Stanimir Stamenkov" <***@domain.invalid> wrote in message news:dhs97u$***@ripley.aoltw.net...

<...flames snuffed...>

So set on chastising for nomenclature and netiquette that you completely
missed the question at hand? Allow me to give you the "executive" version.

Since the "name=" ATTRIBUTE of an <input> tag is defined as CDATA, is it a
safe statement that anything, with the exception of leading/trailing white
space and double quotes, can be its value?
Stanimir Stamenkov
2005-10-04 08:28:24 UTC
Permalink
Post by MyndPhlyp
<...flames snuffed...>
So set on chastising for nomenclature and netiquette that you completely
missed the question at hand? Allow me to give you the "executive" version.
I've answered to your single question. I don't of what "flames and
bull*hit" you're talking about.
Post by MyndPhlyp
Since the "name=" ATTRIBUTE of an <input> tag is defined as CDATA, is it a
safe statement that anything, with the exception of leading/trailing white
space and double quotes, can be its value?
Let me answer you once again: what is declared in the DTD is not the
only constraint which must be observed - the specification makes
clear, for example, the 'width' attribute of an IMG element is a
number or percentage value although the DTD cannot express that
constraint.
--
Stanimir <stanio(_at_)myrealbox.com>
MyndPhlyp
2005-10-04 12:29:12 UTC
Permalink
Post by Stanimir Stamenkov
Post by MyndPhlyp
Since the "name=" ATTRIBUTE of an <input> tag is defined as CDATA, is it a
safe statement that anything, with the exception of leading/trailing white
space and double quotes, can be its value?
Let me answer you once again: what is declared in the DTD is not the
only constraint which must be observed - the specification makes
clear, for example, the 'width' attribute of an IMG element is a
number or percentage value although the DTD cannot express that
constraint.
Width is defined as type %Length and is CN. Name is defined as CDATA and is
CI. The response neither compares apples to apples nor does it answer the
question.

Loading...