JS在Safari中工作,但不是FF-DOM错误 [英] JS works in Safari, but not FF - DOM error
本文介绍了JS在Safari中工作,但不是FF-DOM错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我遇到了一个在Safari中完美运行的脚本的问题,但是在FF中不起作用。它吐出的错误是
I''ve got a problem with a script that is working perfectly in Safari, but won''t work in FF. The error it spits out is
例外``[例外......未找到节点代码:8 nsresult:" 0x80530008(NS_ERROR_DOM_NOT_FOUND_ERR)" location:" https://***.net/~dhaggard/portal/js/checkPartition.js Line:355"]''''从函数deletePartition抛出('aPartID = string:" hdpart-1/1243" ,partHDrive = string:" hdpart-1")in< https://***.net/~dhaggard/portal/js/checkPartition.js>第355行。
例外``[例外......未找到节点代码:8 nsresult:" 0x80530008(NS_ERROR_DOM_NOT_FOUND_ERR)" location:" https://***.net/~dhaggard/portal/js/checkPartition.js Line:355"]''''从< javascript 中的函数(null)()抛出b>:deletePartition( '' hdpart-1243分之1 '', '' hdpart-1 '')>第1行
Exception ``[Exception... "Node was not found" code: "8" nsresult: "0x80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)" location: "https://***.net/~dhaggard/portal/js/checkPartition.js Line: 355"]'''' thrown from function deletePartition(aPartID=string:"hdpart-1/1243", partHDrive=string:"hdpart-1") in <https://***.net/~dhaggard/portal/js/checkPartition.js> line 355.
Exception ``[Exception... "Node was not found" code: "8" nsresult: "0x80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)" location: "https://***.net/~dhaggard/portal/js/checkPartition.js Line: 355"]'''' thrown from function (null)() in <javascript:deletePartition(''hdpart-1/1243'',''hdpart-1'')> line 1.
这是我试图调用的函数...
Here is the function I''m trying to call...
展开 | 选择 | Wrap | 行号
推荐答案
我假设removeChild行导致错误。你能否展示id为hdpart-1的表格?和id为hdpart-1/1243的tr?
I''m assuming the removeChild line is causing the error. Can you show the table with id "hdpart-1" and tr with id "hdpart-1/1243"?
当然......
Sure...
展开 | 选择 | Wrap | 行号
嗨...
是oldPartition好吗?我的意思是在您尝试删除之前找到的节点?
亲切的问候
hi ...
is oldPartition ok? i mean is the node found before you try to remove it?
kind regards
这篇关于JS在Safari中工作,但不是FF-DOM错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文