|
Posted by Jukka K. Korpela on 09/24/06 05:00
patrick j wrote:
> I'm wondering about an entity.
Are you sure you need entities?
> The entity for a "stupid" double quote is: "
It's never needed except in a contrived case where an attribute value
contains a "stupid" double quote and you want to use double quotes as a
delimiter of the value.
> What is the entity for a single "stupid" quote?
' in any XML-based version of HTML, and none in classic HTML
It's never needed except in a contrived case where an attribute value
contains a "stupid" single quote and you want to use single quotes as a
delimiter of the value. In classic HTML, you were supposed to use a
character reference (') in such a situation.
You didn't find it in the HTML 4.01 specification because it isn't there.
It's mentioned in the XHTML 1.0 specification, though, as a compatility
issue: http://www.w3.org/TR/xhtml1/#C_16
(It's not otherwise mentioned there explicitly, since ' is in XHTML
because it's part of XML, for some strange reason.)
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
[Back to original message]
|