[Greasemonkey] e4x
Stéphane Payrard
stef at stefp.dyndns.org
Fri Feb 10 18:45:59 EST 2006
Mook a écrit :
<snip>
| <link-spam>
| I'm using e4x as a hack to get multiline strings in greasemonkey -
| that might be useful to someone :) After all, JS hasn't got
| HEREDOC...
|
| </link-spam>
I wish all spam would be like that.
In your example, I see that when one creates a XML string, he has
to wrap it in a extra element, here denoted by <r>...</r>.
How strange, I have noted the same behavior on my (not yet
greasemonkey) e4x scripts.
Also, I am able to insert such "XML string" using xmlstr.innerHTML but
not using document.appendChild(xmlstr). I am not sure what is the
proper way to do it.
If one can point me to some greasemonkey scripts using e4x, I am sure
I could pick some good idioms,
Disclaimer : I have not gone thru the e4x spec
Thx Mook.
Thx for all explanations and advices from people on that thread.
|
| --
| Mook
--
cognominal stef
More information about the Greasemonkey
mailing list