On Wed, Oct 6, 2010 at 9:25 AM, Peter Lind <peter.e.l...@gmail.com> wrote:
> On 6 October 2010 15:21, Andy McKenzie <amckenz...@gmail.com> wrote:
>> On Wed, Oct 6, 2010 at 9:03 AM, Robert Cummings <rob...@interjinn.com> wrote:
>>> On 10-10-06 08:52 AM, Peter Lind wrote:
>>>>
>>>> Where exactly do you get the part about double quotes from? Can't seem
>>>> to locate it in the any of the relevant specs (xhtml or xml). Also,
>>>> never seen an xml or xhtml validator choke on single quotes.
>>>
>>> http://www.w3.org/TR/xhtml1/#h-4.2
>>>
>>> Cheers,
>>> Rob.
>>
>> I don't see that it explicitly states a requirement for double quotes
>> there -- it certainly implies it, but the text never says anything
>> about either double-quotes being required or single-quotes being
>> disallowed.
>>
>> Full text:  "All attribute values must be quoted, even those which
>> appear to be numeric."
>>
>> Is there a statement somewhere in the document that says quotes are
>> always double-quotes?
>
> No, there isn't. Both single quotes and double quotes are allowed for
> attributes in both XML and XHTML. What makes you think it's implied
> that double quotes are the only allowed form of quotes?
>
> Regards
> Peter
>

Double quotes are the only example given:  in most documentation if
there are two allowed forms, there are two examples, or at least a
note in the text.  I haven't read enough of this particular document
to know if they follow that form, but I've certainly seen it a lot of
places.

-Alex

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to