Re: Quotes vs. Single Quote

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 5, 2010 at 8:51 PM, Adam Richardson <simpleshot@xxxxxxxxx> wrote:

> Tim Bray, who knows a little bit about XML dialects (tongue in cheek),
> appears to default to the single quote as his delimiter of choice:
> http://www.tbray.org/ongoing/

Side note, looks like his stuff is auto-generated by something, so
it's defined once and replicated many times for templating... but also
I do see some attributes with double quotes mixed in, i.e.:

<div class="employ">I work for Google, but the opinions expressed here
are my own, and no other party necessarily
agrees with them.<br/>
A full disclosure of my professional interests is on the <a
href='/ongoing/misc/Tim'>author</a> page.
</div>


<h2 id='comments'>Contributions</h2>
<div class="comments"><p>Comment feed for <span
class="o">ongoing</span>:<a href="/ongoing/comments.atom"><img
src="/ongoing/Feed.png" alt="Comments feed"/></a></p>


<a href="/ongoing/"
 onclick="setActiveStyleSheet('serif'); return false;"
 onkeypress = "setActiveStyleSheet('serif'); return false;"
 accesskey="p" id="serif">Serif</a>  &#xb7;
<a href="/ongoing/"
 onclick="setActiveStyleSheet('sans'); return false;"
 onkeypress = "setActiveStyleSheet('sans'); return false;"
 accesskey="p" id="sans">Sans-Serif</a>


I should say also - double quotes helps when using inline JavaScript
in attributes too :) add that to my reasons. I just default to double
quotes because of history developing things, it just works easier.

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux