Ben Boyle 14 December 2005 This will work: quote.insertBefore(cite, quote.nextSibling); http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#ID-952280727Specifically: If refChild is null, insert newChild at the end of the list of children. So insertBefore works like appendChild when the second argument is null. Very useful :)
This will work:
quote.insertBefore(cite, quote.nextSibling);
http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#ID-952280727
Specifically: If refChild is null, insert newChild at the end of the list of children. So insertBefore works like appendChild when the second argument is null. Very useful :)