搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Why is result of getting firstChild from xmlNode not complete?

  • 3 个回答
  • 1 人有此问题
  • 2 次查看
  • 最后回复者为 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
已附加屏幕截图

所有回复 (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