In article <997dil$t5u$[EMAIL PROTECTED]>, Yasuo Ohgaki
<[EMAIL PROTECTED]> writes
>> "Paul Rees" <[EMAIL PROTECTED]> wrote in message
>> r19NDKAFmot6Ew$[EMAIL PROTECTED]">news:r19NDKAFmot6Ew$[EMAIL PROTECTED]...
>> > Hi,
>> >
>> > The php function 'get_meta_tags' doesn't work when the meta tag name/
>> > content values are single quoted. It's fine for double quotes. I've had
>> > a look but can't find anything on the w3 site to say whether or not
>> > double quotes are required in meta tags. Does anyone know what the rule
>> > is?
>> >
>> > (php v 4.04pl1, apache, linux 2.2.18)
>FYI:
>Looks like it is fixed in CVS version and get_meta_tags() now accepts single
>quotes.
>(I still recommends to use double quotes for your application, but we cannot
>force
>others and single quotes should be accepted for older HTML versions)
Yes, you're right. Thanks very much. Out of interest, why do you
recommend the use of double quotes? It's so much easier to use single
quotes in these sort of cases:
echo "<INPUT type='text' name='name' value='value'>\n";
rather than:
echo "<INPUT type=\"text\" name=\"name\" value=\"value\">\n";
or:
echo '<INPUT type="text" name="name" value="value">' . "\n";
...and according to this:
http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2
... double, single, and (sometimes) no quotes are all acceptable.
All the best,
--
Paul Rees
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]