|
Posted by richard on 09/24/06 15:51
"Jukka K. Korpela" <jkorpela@cs.tut.fi> wrote in message
news:LhoRg.18733$Mx1.13341@reader1.news.jippii.net...
> 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.)
The apostrophe has always been a valid character as it has many valid uses.
Which should always be included in any html format.
Although I can't think of a valid reason why one would need to use it within
the text output other than for it's intended purpose.
[Back to original message]
|