On Monday, March 10, 2014 11:52:05 AM UTC-7, Anthony Lieuallen wrote:
>
> On Mon, Mar 10, 2014 at 12:54 PM, Drake Phoenix 
> <[email protected]<javascript:>
> > wrote:
>
>> I need to know how the GM_addStyle function handles quotes within the 
>> string.
>
>
> It doesn't.  It is JavaScript the language which defines this behavior.  
> GM_addStyle accepts string input, and simply creates DOM nodes out of it.
>


OK, but doesn't JavaScript normally handle quotes inside of strings if you 
use the escape character?  That is, using \' or \" instead of just ' or "  
JavaScript *should* handle it correctly, yes?  Assuming JavaScript still 
handles strings in this way, then the GM_addStyle function should also be 
usable in this fashion (also assuming that the function doesn't do strange 
parsing of the string input).  So I guess my question really is, does JS 
still handle strings in this way, allowing escape characters so you can use 
quotes (would be really lame if it doesn't), and does the GM_addStyle 
function use normal JS string handling and parsing?

Thanks,
Drake Phoenix

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to