> Ok, I see now. But it applies to XHTML, not standard HTML 

If you read the quote carefully, it refers to common mishandling of
ampersands within URIs in HTML user agents. But anyway, here's the relevant
quote from the HTML 4.01 spec:

http://www.w3.org/TR/html401/appendix/notes.html#h-B.2.2

"B.2.2 Ampersands in URI attribute values

The URI that is constructed when a form is submitted may be used as an
anchor-style link (e.g., the href attribute for the A element).
Unfortunately, the use of the "&" character to separate form fields
interacts with its use in SGML attribute values to delimit character entity
references. For example, to use the URI "http://host/?x=1&y=2"; as a linking
URI, it must be written <A href="http://host/?x=1&#38;y=2";> or <A
href="http://host/?x=1&amp;y=2";>.

We recommend that HTTP server implementors, and in particular, CGI
implementors support the use of ";" in place of "&" to save authors the
trouble of escaping "&" characters in this manner."

> Anyway, this is obviously in contradiction with RFC 1738.

No, it isn't, actually. RFC 1738 specifies how URLs should look when they're
used in HTTP requests, etc. The HTML specification specifies how URLs should
be included within documents. There's no reason those can't be two different
things; if they are, it would be the job of the user agent to transform them
from one to the other.

> In HTML, what's inside an attribute is NOT HTML, it is just a 
> string value. Of course, one can pass a string contaning HTML 
> in a parameter, but the string does not have to be HTML encoded 
> to be a valid HTML attribute.

Have you never heard of HTML character entities? Why on earth do you think
they exist?

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

This email has been processed by SmoothZap - www.smoothwall.net


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275655
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to