diff --git a/js/id/ui/conflicts.js b/js/id/ui/conflicts.js index 13e5e5368..098b38c1d 100644 --- a/js/id/ui/conflicts.js +++ b/js/id/ui/conflicts.js @@ -64,7 +64,7 @@ iD.ui.Conflicts = function(context) { function showConflict(selection, index) { if (index < 0 || index >= list.length) return; - var parent = d3.select(selection.node().parentElement); + var parent = d3.select(selection.node().parentNode); // enable save button if this is the last conflict being reviewed.. if (index === list.length - 1) { @@ -172,7 +172,7 @@ iD.ui.Conflicts = function(context) { .attr('type', 'radio') .attr('name', function(d) { return d.id; }) .on('change', function(d, i) { - var ul = this.parentElement.parentElement.parentElement; + var ul = this.parentNode.parentNode.parentNode; ul.__data__.chosen = i; choose(ul, d); }); @@ -183,7 +183,7 @@ iD.ui.Conflicts = function(context) { choices .each(function(d, i) { - var ul = this.parentElement; + var ul = this.parentNode; if (ul.__data__.chosen === i) choose(ul, d); }); } diff --git a/js/id/ui/selection_list.js b/js/id/ui/selection_list.js index bbbf80bc4..e16d3bbe3 100644 --- a/js/id/ui/selection_list.js +++ b/js/id/ui/selection_list.js @@ -49,7 +49,7 @@ iD.ui.SelectionList = function(context, selectedIDs) { // Update items.selectAll('use') .attr('href', function() { - var entity = this.parentElement.parentElement.__data__; + var entity = this.parentNode.parentNode.__data__; return '#icon-' + context.geometry(entity.id); });