JS: Ignore ids forms and form controls in getCSSPath()
Id generation is unreliable. refs #10992
This commit is contained in:
parent
323c1e3ebb
commit
2f9ffa65d7
|
@ -286,7 +286,8 @@
|
|||
while (true) {
|
||||
var id = $node.attr('id');
|
||||
|
||||
if (typeof id !== 'undefined' && id.indexOf('form_') !== 0) {
|
||||
// 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