The line JSON.stringify( $("p") ); causes an error:
InvalidStateError: Failed to read the 'selectionDirection' property from 'HTMLInputElement': The input element's type ('button') does not support selection.
(I'm using Google Chrome 34)
Why?
How else should I make $("p") more portable so I can store it or pass it in a message?
ps?$('p').html()be sufficient?if (!$('foo').attr('id')) { $('foo').attr('id', 'uid-' + Math.random()); }