Zoeken in Support

Vermijd ondersteuningsscams. We zullen u nooit vragen een telefoonnummer te bellen, er een sms naar te sturen of persoonlijke gegevens te delen. Meld verdachte activiteit met de optie ‘Misbruik melden’.

Meer info

Deze conversatie is gearchiveerd. Stel een nieuwe vraag als u hulp nodig hebt.

Why is result of getting firstChild from xmlNode not complete?

  • 3 antwoorden
  • 1 heeft dit probleem
  • 14 weergaven
  • Laatste antwoord van karpach.dasha

more options

Why is result of getting firstChild from xmlNode not complete?

Hello! I have the following problem with script like this:


var parser = new DOMParser() var st = '<Item type="mpp_Step" typeId="8A8E3342652646D6B94E9FE81D61AE4C" id="CC6EC28C032B4224A354FF9843B0D458"><wi_details xml:lang="en"><Text xmlns="http://www.aras.com/MPP" xmlns:aras="http://aras.com/ArasTechDoc" aras:id="8D29D60BFD1C43D28DC3C97652DC8993"><aras:emph xmlns="">test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test testt</aras:emph></Text></wi_details><sort_order>1000000</sort_order></Item>' var xmlDoc = parser.parseFromString(st, "text/xml"); var fc = xmlDoc.firstChild.firstChild.firstChild;

console.log(fc);


(I put this file in simple html page)

(The same behavior with childNodes[0] instead of firstChild) Results in Chrome and FF are not the same. It reproduced in FF 38, 40, 43. In 44.0 and 58 FF versions the results are the same with Chrome. (I checked only this versions). Could you please tell me what it means? How can I solve this problem for 38 FF version?

(1st results: Chrome, 2ns results: FireFox)

Thanks, Dasha Karpach e-mail: [email protected]

Why is result of getting firstChild from xmlNode not complete? Hello! I have the following problem with script like this: ----------------------------------------------------- var parser = new DOMParser() var st = '<Item type="mpp_Step" typeId="8A8E3342652646D6B94E9FE81D61AE4C" id="CC6EC28C032B4224A354FF9843B0D458"><wi_details xml:lang="en">&lt;Text xmlns="http://www.aras.com/MPP" xmlns:aras="http://aras.com/ArasTechDoc" aras:id="8D29D60BFD1C43D28DC3C97652DC8993"&gt;&lt;aras:emph xmlns=""&gt;test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test testt&lt;/aras:emph&gt;&lt;/Text&gt;</wi_details><sort_order>1000000</sort_order></Item>' var xmlDoc = parser.parseFromString(st, "text/xml"); var fc = xmlDoc.firstChild.firstChild.firstChild; console.log(fc); ----------------- (I put this file in simple html page) (The same behavior with childNodes[0] instead of firstChild) Results in Chrome and FF are not the same. It reproduced in FF 38, 40, 43. In 44.0 and 58 FF versions the results are the same with Chrome. (I checked only this versions). Could you please tell me what it means? How can I solve this problem for 38 FF version? (1st results: Chrome, 2ns results: FireFox) Thanks, Dasha Karpach e-mail: [email protected]
Gekoppelde schermafbeeldingen

Alle antwoorden (3)

more options
more options

If you think this could be a bug in developer tools, you can post on this other forum for suggestions:

https://discourse.mozilla.org/c/devtools