Revert "utils.js: Utilize ids of forms and elements in getCssPath"

This reverts commit c835f02953.
This commit is contained in:
Johannes Meyer 2019-04-25 10:11:45 +02:00
parent c0e102cedd
commit 50f5aa0ac3
1 changed files with 2 additions and 1 deletions

View File

@ -286,7 +286,8 @@
while (true) {
var id = $node.attr('id');
if (typeof id !== 'undefined') {
// Ignore forms and form controls because id generation is unreliable :(
if (typeof id !== 'undefined' && ! $node.is(':input') && ! $node.is('form')) {
path.push('#' + id);
break;
}