Re: which one is faster
| From: | Andy McKenzie | Date: | Wed, 06 Oct 2010 13:31:24 +0000 |
| Subject: | Re: which one is faster | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-308505@lists.php.net to get a copy of this message | ||
On Wed, Oct 6, 2010 at 9:25 AM, Peter Lind <peter.e.lind@gmail.com> wrote:
> On 6 October 2010 15:21, Andy McKenzie <amckenzie4@gmail.com> wrote:
>> On Wed, Oct 6, 2010 at 9:03 AM, Robert Cummings <robert@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