utils.js: Utilize ids of forms and elements in getCssPath
They're now reliable again :) fixes #2238
This commit is contained in:
parent
c8a49414b1
commit
c835f02953
|
@ -286,8 +286,7 @@
|
||||||
while (true) {
|
while (true) {
|
||||||
var id = $node.attr('id');
|
var id = $node.attr('id');
|
||||||
|
|
||||||
// Ignore forms and form controls because id generation is unreliable :(
|
if (typeof id !== 'undefined') {
|
||||||
if (typeof id !== 'undefined' && ! $node.is(':input') && ! $node.is('form')) {
|
|
||||||
path.push('#' + id);
|
path.push('#' + id);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue