Message from JavaScript discussions
October 2017
— So I think the developers who wrote the function overlooked what they were returning, and the behavior just stayed in there without much notice even from documentation writers. WebKit does not document those functions whatsoever
But it is well known Apple and Mozilla dislike the W3C as an organization and both consider DOM Level 3 Core to be obsolete, opting instead to use the WHATWG living standard instead, which is so vague they can implement a lot without explanation.
— I think its not very specified on the DOM Level 3 Core Document what happens with the return value of the node-inserting operations, so they delegated that part to the implementation. I don't think Mozilla or Apple failed to stick on the document.
Besides that, DocumentFragment
is an interface of Node
so its technically a Node
itself. In this thinking I would return the empty DocumentFragment
because its a Node
.
— The W3C IDL Definition for DocumentFragment
is
interface DocumentFragment : Node {
};
— Halp
— How to re-reload element from variable?
—
var table_body_channel = $('#thetable tbody'); // this is the element (this element not exist yet)
listData(
table_channel,
table_body_channel
);
in the
listData
function i am calling table.DataTable({});
then the tbody existsbut in
listData
when i call table_body_channel its not the correct tbody. how to make it work?
— Nvm, realize i can just pass class name 😄
— Guys, do you know why they decided to make the arrow functions bound to the parent context? I mean, was there a reason for it?
— What else would it be bound to 🤔
— Well, arrow functions don't have their own this
, while normal functions do, right?
— Correct