[Webkit-unassigned] [Bug 30888] Implementation of String.quote() method

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 5 00:26:22 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=30888





--- Comment #6 from Ioseb Dzmanashvili <ioseb.dzmanashvili at gmail.com>  2009-11-05 00:26:22 PDT ---
(In reply to comment #5)
> I'm not entirely convinced of the benefit of this function -- it's not a
> standard feature, and doesn't give you anything JSON.stringify doesn't give you
> already.

Hi Oliver, 

This nonstandard method actually was in spec draft and as I think FF team
implemented it then... though method was removed from spec later as far as it
no longer exists in final draft now.

Only difference from SJSON.stringify() I was able to find is encoding of
vertical tab character(\v)

One case this method might be more useful/comfortable over JSON.stringify(); is
then if string needs to be quoted one can invoke quote() method directly on
string object e.g. "some string".quote() from my point of view it is more
semantically correct rather then using JSON.stringify() in all cases.

I'm not advocate of nonstandard methods but I thought it would be useful if
Webkit has same functionality.

Regards,
Ioseb

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list