File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11
11
if (el.id) {
12
12
elid = el.id;
13
13
if (elid.includes(',') || elid.includes('.') ||
14
- elid.includes('(') || elid.includes(')'))
14
+ elid.includes('(') || elid.includes(')') || hasNumber(elid[0]) )
15
15
return cssPathByAttribute(el, 'id');
16
16
selector += '#' + elid;
17
17
path.unshift(selector);
110
110
return el.tagName.toLowerCase();
111
111
};
112
112
function turnIntoParentAsNeeded(el) {
113
- if (tagName(el) == 'span') {
113
+ if (tagName(el) == 'span' || tagName(el) == 'i' ) {
114
114
if (tagName(el.parentElement) == 'button') {
115
115
el = el.parentElement;
116
116
}
148
148
non_id_attributes.push('data-action');
149
149
non_id_attributes.push('data-target');
150
150
non_id_attributes.push('data-content');
151
+ non_id_attributes.push('data-tooltip');
151
152
non_id_attributes.push('alt');
152
153
non_id_attributes.push('title');
153
154
non_id_attributes.push('heading');
You can’t perform that action at this time.
0 commit comments