With this script: ``` const { DOMParser } = require('@xmldom/xmldom') let source = '<div id="note-body">note</div>'; const parser = new DOMParser() doc = parser.parseFromString(source, 'text/html'); let root = doc.getElementById('note-body'); console.log(root.children) ``` I get `undefined`. Should nodes/the root element not have `children` properties as per https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString ?
With this script:
I get
undefined. Should nodes/the root element not havechildrenproperties as per https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString ?