Fix drawing of annotations in Safari and IE

ParentNode.children is only supported in Chrome and Firefox

[#83155888][#74688264]