Re: [whatwg] Scripting Tweaks

2007-06-05 Thread Maciej Stachowiak
On Jun 4, 2007, at 9:25 PM, Ian Hickson wrote: On Sat, 19 May 2007, Maciej Stachowiak wrote: May I suggest reproposing [DOMContentLoaded] for DOM 3 Events, then, since your former objection to it is withdrawn? I can if you want, but I don't really see it as a feature that would be

Re: [whatwg] Scripting Tweaks

2007-06-05 Thread Ian Hickson
On Mon, 4 Jun 2007, Maciej Stachowiak wrote: I can if you want, but I don't really see it as a feature that would be expected in DOM3 Events. DOM Events defines the event infrastructure; it doesn't define when and how each event is actually fired. The firing of the events in HTML is

Re: [whatwg] Scripting Tweaks

2007-06-04 Thread Ian Hickson
On Sat, 19 May 2007, Maciej Stachowiak wrote: May I suggest reproposing [DOMContentLoaded] for DOM 3 Events, then, since your former objection to it is withdrawn? I can if you want, but I don't really see it as a feature that would be expected in DOM3 Events. DOM Events defines the event

Re: [whatwg] Scripting Tweaks

2007-05-25 Thread Dean Edwards
Maciej Stachowiak wrote: On May 19, 2007, at 4:27 PM, Dean Edwards wrote: Maciej Stachowiak wrote: On May 18, 2007, at 10:14 PM, liorean wrote: On 19/05/07, Ian Hickson [EMAIL PROTECTED] wrote: The uniqueID thing is really working around a deficiency in JS (inability to use objects as keys).

Re: [whatwg] Scripting Tweaks

2007-05-25 Thread liorean
Maciej Stachowiak wrote: To my knowledge, most non-JavaScript programming languages already have facilities for hashing on object identity. This is true at least of C++, Java, Objective-C and C; it also appears to be true of Python, Ruby, Perl and C# as far as I can tell from the docs. What

Re: [whatwg] Scripting Tweaks

2007-05-19 Thread Maciej Stachowiak
On May 18, 2007, at 9:56 PM, Ian Hickson wrote: I did quite a lot of research before defining it. There's content depending on it. Two browsers support it, and workarounds are hacked into libraries to fake it for the two other browsers, including one that supports script defer. (The

Re: [whatwg] Scripting Tweaks

2007-05-19 Thread ddailey
On Saturday, May 19, 2007 1:37 AM liorean wrote: True, but what is wanted by scripters isn't that it triggers before any rendering takes place at all, what is wanted by scripters is to not have to wait for external content to load, in difference to the load event. The important factors are that

Re: [whatwg] Scripting Tweaks

2007-05-19 Thread Maciej Stachowiak
On May 18, 2007, at 10:14 PM, liorean wrote: On 19/05/07, Ian Hickson [EMAIL PROTECTED] wrote: for (var i in elements) { if (!elements[i].processed) { process(elements[i]); elements[i].processed = true; } } for (var i in elements) delete elements[i].processed;

Re: [whatwg] Scripting Tweaks

2007-05-19 Thread Dean Edwards
Maciej Stachowiak wrote: On May 18, 2007, at 10:14 PM, liorean wrote: On 19/05/07, Ian Hickson [EMAIL PROTECTED] wrote: The uniqueID thing is really working around a deficiency in JS (inability to use objects as keys). I think that's where it should be addressed. The uniqueID idea has a number

Re: [whatwg] Scripting Tweaks

2007-05-19 Thread Maciej Stachowiak
On May 19, 2007, at 4:27 PM, Dean Edwards wrote: Maciej Stachowiak wrote: On May 18, 2007, at 10:14 PM, liorean wrote: On 19/05/07, Ian Hickson [EMAIL PROTECTED] wrote: The uniqueID thing is really working around a deficiency in JS (inability to use objects as keys). I think that's where it

Re: [whatwg] Scripting Tweaks

2007-05-19 Thread liorean
Ian Hickson wrote: Speaking of setTimeout, where is this defined? http://whatwg.org/specs/web-apps/current-work/#settimeout On 4/21/05, Dean Edwards [EMAIL PROTECTED] wrote: OK. That's twice in one day. I'm off to read the WA1 spec On 21/04/05, Jim Ley [EMAIL PROTECTED] wrote:

Re: [whatwg] Scripting Tweaks

2007-05-18 Thread Maciej Stachowiak
On May 18, 2007, at 3:40 PM, Ian Hickson wrote: On Wed, 20 Apr 2005, Dean Edwards wrote: 1) Mozilla's DOMContentLoaded event is very handy. It fires when a node's content has been loaded and parsed (the DOM has been constructed). This is much better than the standard onload event as it

Re: [whatwg] Scripting Tweaks

2007-05-18 Thread Ian Hickson
On Fri, 18 May 2007, Maciej Stachowiak wrote: 1) Mozilla's DOMContentLoaded event is very handy. It fires when a node's content has been loaded and parsed (the DOM has been constructed). This is much better than the standard onload event as it doesn't wait for binary content to

Re: [whatwg] Scripting Tweaks

2007-05-18 Thread liorean
On 19/05/07, Ian Hickson [EMAIL PROTECTED] wrote: 3) I find myself using Microsoft's uniqueID property quite often. Although the ID attribute is supposed to provide a unique identifier, it often doesn't. We would probably need a complementary DOM method to retrieve an element by uniqueID (IE

Re: [whatwg] Scripting Tweaks

2005-04-21 Thread Jim Ley
On 4/21/05, Dean Edwards [EMAIL PROTECTED] wrote: Ian Hickson wrote: Speaking of setTimeout, where is this defined? http://whatwg.org/specs/web-apps/current-work/#settimeout OK. That's twice in one day. I'm off to read the WA1 spec It's rather odd though, as it's been defined

[whatwg] Scripting Tweaks

2005-04-20 Thread Dean Edwards
There are some scripting tweaks I'd like to see in WA1. Apologies if these have been covered already: 1) Mozilla's DOMContentLoaded event is very handy. It fires when a node's content has been loaded and parsed (the DOM has been constructed). This is much better than the standard onload event

Re: [whatwg] Scripting Tweaks

2005-04-20 Thread Ian Hickson
On Wed, 20 Apr 2005, Dean Edwards wrote: So you'd submit to a hidden iframe and then disable the main page? Yep. The iframe then unlocks the page when submission is complete. Forgetting about iframes for a minute. This is analogous to disabling the entire application (not the chrome).

Re: [whatwg] Scripting Tweaks

2005-04-20 Thread Dean Edwards
Ian Hickson wrote: On Wed, 20 Apr 2005, Dean Edwards wrote: So you'd submit to a hidden iframe and then disable the main page? Yep. The iframe then unlocks the page when submission is complete. Forgetting about iframes for a minute. This is analogous to disabling the entire application (not the

Re: [whatwg] Scripting Tweaks

2005-04-20 Thread Dean Edwards
Brad Fults wrote: On 4/20/05, Dean Edwards [EMAIL PROTECTED] wrote: Yes, but as I said initially, that creates a closure. This is not always the most efficient solution. Your code won't work anyway because i is variable. The closure would need to be more complicated to work properly. Talking about

Re: [whatwg] Scripting Tweaks

2005-04-20 Thread Jim Ley
On 4/20/05, Dean Edwards [EMAIL PROTECTED] wrote: Speaking of setTimeout, where is this defined? Nowhere, and in fact the string method is the commoner implementation, there are a number of implementations which do not support a function reference. uniqueID is very useful, I to use it all the

Re: [whatwg] Scripting Tweaks

2005-04-20 Thread Ian Hickson
[I'll get back to the rest of the thread when I actually work on the relevant parts of the spec (I agree with the proposals in general, so there isn't much for me to add), but just jumping in here:] On Wed, 20 Apr 2005, Dean Edwards wrote: Speaking of setTimeout, where is this defined?

Re: [whatwg] Scripting Tweaks

2005-04-20 Thread Brad Neuberg
At 01:11 PM 4/20/2005, you wrote: On 4/20/05, Dean Edwards [EMAIL PROTECTED] wrote: Speaking of setTimeout, where is this defined? Nowhere, and in fact the string method is the commoner implementation, there are a number of implementations which do not support a function reference. uniqueID is