Pretraži podršku

Izbjegni prevare podrške. Nikad te nećemo tražiti da nas nazoveš, da nam pošalješ telefonski broj ili da podijeliš osobne podatke. Prijavi sumnjive radnje pomoću opcije „Prijavi zlouporabu”.

Saznaj više

Why is result of getting firstChild from xmlNode not complete?

  • 3 odgovora
  • 1 ima ovaj problem
  • 14 prikaza
  • Posljednji odgovor od 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: karpach.dasha@gmail.com

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: karpach.dasha@gmail.com
Priložene slike ekrana

Svi odgovori (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