Thanks for the correction. Welcome back.

I too don't see the use, hence the brusque reply.


In IE one could use outerHTML, in other browsers as a workaround.  
some combination of temporary elements, replace(), and innerHTML  
works too:

var tempEl = new Element('div');
var str = tempEl.innerHTML;
return str;


On Aug 21, 2007, at 4:53 PM, Christophe Porteneuve wrote:

> Hey Tom,
> Tom Gregory a écrit :
>> Done. ... quite a while ago, actually.
>> alert($('input').inspect());
>> See
> Not quite so, actually: inspect() will only add id= and class=, not
> introspect the attributes.  Also, how to behave for non-empty  
> elements?
> At any rate, I fail to see the usefulness of such a function, at least
> at the Core level, outside of debugging needs.  And for debugging, we
> have tooling already...
> -- 
> Christophe Porteneuve a.k.a. TDD
> "[They] did not know it was impossible, so they did it." --Mark Twain
> >

You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at

Reply via email to