Change  to handle Shadow DOM with multiple insertion points