W3C DOM Node appendChild, insertBefore and removeChild methods bug fix

	Note: This patch is also known as the "standing ovation in Dubai"
	patch for reasons which simply can't be disclosed