Revert "utils.js: Utilize ids of forms and elements in getCssPath"
This reverts commit c835f02953
.
This commit is contained in:
parent
c0e102cedd
commit
50f5aa0ac3
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue