Search the web
Sign In
New User? Sign Up
caplet · The Caplet Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 56 - 85 of 309   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
56
Special thanks to Mike Samuel. I owe you a late of shrimp. I am now disallowing the use of subscripting. In its place, I will be providing ADSAFE.get(object,...
Douglas Crockford
douglascrock...
Offline Send Email
Oct 1, 2007
11:45 am
57
Not all dangerous dereferences are functions: (function() { var javascript = "javascript"; javascript += ":alert(42)"; ADSAFE.get({}, "__parent__").location =...
collin_jackson
Offline Send Email
Oct 1, 2007
4:29 pm
58
... Quite right. I should have mentioned that get and put will also block the same members that ADsafe blocks, including names starting with _....
Douglas Crockford
douglascrock...
Offline Send Email
Oct 1, 2007
4:43 pm
59
This is the definition of ADSAFE.get and ADSAFE.set. var ADSAFE = function () { var exclude = { apply : true, begetObject : true, call...
Douglas Crockford
douglascrock...
Offline Send Email
Oct 3, 2007
12:40 pm
60
/*@cc_on alert("Conditional compilation considered harmful"); @*/...
collin_jackson
Offline Send Email
Oct 3, 2007
7:01 pm
61
I dislike blacklists. See comments on hasOwnProperty below. ... Perhaps exclude.hasOwnProperty(name)? Right now you'll exclude valueOf, though whether that's...
Mike Samuel
mikesamuel
Offline Send Email
Oct 3, 2007
7:09 pm
62
... Good one. I owe you a plate of shrimp....
Douglas Crockford
douglascrock...
Offline Send Email
Oct 3, 2007
7:50 pm
63
... hasOwnProperty would ... I like the idea of restricting access to the prototype chain. ... I want to control what functions they get access to. Functions...
Douglas Crockford
douglascrock...
Offline Send Email
Oct 3, 2007
8:07 pm
64
I am concerned about browser differences in the handling of null bytes (and other special characters). Example:...
collin_jackson
Offline Send Email
Oct 3, 2007
10:45 pm
65
This seems to get through the filter: (function() { var str = "</script><script>alert('script tags affect parsing')/*"; })(); /**/ Adam...
Adam Barth
hk9565
Offline Send Email
Oct 4, 2007
12:32 am
66
Douglas Crockford wrote: [...] ... IMHO the rejections should not be silent; they should throw an exception. In any case, I prefer my suggestion to use...
David Hopwood
david.hopwood@...
Send Email
Oct 4, 2007
1:26 am
67
... Good point. I am now scanning for the presence of any control character. ... JSLint runs in a number of configurations, including Rhino and WSH, which read...
Douglas Crockford
douglascrock...
Offline Send Email
Oct 4, 2007
3:29 am
68
... In a .js file, it is harmless. In an .html file, it produces an error....
Douglas Crockford
douglascrock...
Offline Send Email
Oct 4, 2007
3:33 am
69
... When embedded in HTML, it calls alert (at least in IE7 and Firefox 2): http://crypto.stanford.edu/~abarth/jslint/parse.html Adam...
Adam Barth
hk9565
Offline Send Email
Oct 4, 2007
3:55 am
70
I think I misunderstood your comment below. I meant that, when embedded in an HTML file, the script does indeed produce an error in a browser, but the browser...
Adam Barth
hk9565
Offline Send Email
Oct 4, 2007
5:11 am
71
If you do want to allow ADsafe JS to be embedded in a script tag, you need to deal with ]]> as well, since the following could be used to throw allert ...
Mike Samuel
mikesamuel
Offline Send Email
Oct 4, 2007
8:37 am
72
... be ADsafe. ... The usage I was anticipating was that ads would be delivered in individual .js files. Ultimately, I want to banish all in page script. But I...
Douglas Crockford
douglascrock...
Offline Send Email
Oct 4, 2007
1:02 pm
73
... you need ... alert Is it sufficient to disallow <![ ?...
Douglas Crockford
douglascrock...
Offline Send Email
Oct 4, 2007
1:16 pm
74
I have put more limitations on what is tolerated in HTML. I suspect there are more gremlins out there. I am worried about catch(name) clauses. The way that...
Douglas Crockford
douglascrock...
Offline Send Email
Oct 4, 2007
1:32 pm
75
No because ]]> can end a CDATA section introduced by the embedding XHTML page which would then allow the embedding script to play tricks with entities that...
Mike Samuel
mikesamuel
Offline Send Email
Oct 4, 2007
5:35 pm
76
catch is problematic. Below is my writeup of scoping re catch. If my recollections of the behavior of old versions of Firefox/Mozilla are correct, then catch...
Mike Samuel
mikesamuel
Offline Send Email
Oct 4, 2007
6:46 pm
77
Another situation you may or may not have considered is the following: (function(){ throw "hi!"; })(); This brings up the issue of what exactly is ADsafe...
Adam Barth
hk9565
Offline Send Email
Oct 6, 2007
6:56 pm
78
... Does any browser include object references or functions in its exception objects?...
Douglas Crockford
douglascrock...
Offline Send Email
Oct 9, 2007
11:25 pm
79
I have relaxed the rules on words. $ and leading _ are permitted. A trailing __ is forbidden. This change makes ADsafe a subset of another safe JavaScript...
Douglas Crockford
douglascrock...
Offline Send Email
Oct 9, 2007
11:28 pm
80
... As of today, I was able to tell Crock about this other safe Javascript subset. And I can tell you folks as well. It's called "Caja". We will be open...
Mark S. Miller
erights@...
Send Email
Oct 10, 2007
12:30 am
81
Let's refer to a Javascript function that mentions 'this' as a Javascript method. When a Javascript method is called as a function, it's 'this' gets bound to...
Mark S. Miller
erights@...
Send Email
Oct 10, 2007
12:49 am
82
I was not able to reproduce this behavior. I tried this URL: javascript:(function(){alert(window===this);}).call(null); I got an alert of "true" on Firefox...
collin_jackson
Offline Send Email
Oct 10, 2007
1:49 am
83
... Hi Colin, I'm using Firefox 2.0.0.7 on a Mac-x86. When I try your javascript: url I get also get a true. But when I use the squarefree shell bookmarklet, I...
Mark S. Miller
erights@...
Send Email
Oct 10, 2007
4:01 am
84
... It got bound to your shell window (try defining "function foo() { this.close(); }) and see what happens. Not sure what it gets bound to in the first case -...
Ben Laurie
benlaurie2000
Online Now Send Email
Oct 10, 2007
9:21 am
85
Mark, I can't repeat your example under the squarefree shell on FF2.0.0.7 on Linux. And I can't reproduce by playing around with 'with' blocks, window ...
Mike Samuel
mikesamuel
Offline Send Email
Oct 10, 2007
1:23 pm
Messages 56 - 85 of 309   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help