I have some javascript, and either parentNode or previviousElementSibling seems to be breaking in IE8. The code works fine in firefox and IE9. This is the line that's not getting implemented:
$(submitter.parentNode.parentNode.previousElementSibling).children('#mark_as_broken').show();
code is something like
<form><div><input id=mark_as_broken></input></div></form>
<form><div><input id=mark_as_fixed></input></div></form>
where the mark_as_fixed input is the submitter. This works on other browsers.
any ideas which bit of it won't work, and why?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…