Change attribute 'element.children' to 'element.childNodes'. 'element.children' is not available in IE.

(cherry picked from commit 7cdeade5dc346bac4185f4a7a26944998ca6f5a5)