Nice fix. I generally dislike the fact that node.appendChild() actually returns the appended node. The pattern itself reminds me of linked lists in C, thus I expect it to return the node itself.
If you agree, perhaps it's worth splitting up into two separate statements. If not, no problem, just land as-is :)
Nice fix. I generally dislike the fact that node.appendChild() actually returns the appended node. The pattern itself reminds me of linked lists in C, thus I expect it to return the node itself.
If you agree, perhaps it's worth splitting up into two separate statements. If not, no problem, just land as-is :)