Trying hard to grasp this.
So the element IS being created in memory, but is not getting a child
element appended to it?
I don't understand why these two aren't identical:
ex. 1:
` newP = document.createElement("p");
` newP.appendChild(document.createTextNode("hello, world!"));
ex. 2:
` document.createElement("p").appendChild(document.createTextNode
("hello, world!"));
If the first example works, why can't I substitue the variable with
it's original value (example 2)?
Does it have to do with objects? (I'm not familiar with object-
oriented programming)
If it does, than what is the variable? A reference to an object stored
in memory?
Are variables required to work with objects in memory?
> I assume you're aware that these are not valid HTML4 documents?
> (It looks a little like HTML5, but that might be coincidental?)
coincidental? no. valid? well, sure:
http://html5.validator.nu/?doc=http%3A%2F%2Fjksjs.s3.amazonaws.com%2Fce1.html&showsource=yes
atleast, it works.
(Thank you all for replying.)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en
-~----------~----~----~----~------~----~------~--~---