Skip to content

Commit ceddccc

Browse files
committed
ide: record a elements if they dont have hrefs. closes #570
1 parent 52e9d64 commit ceddccc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: ide/main/src/content/recorder-handlers.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ Recorder.prototype.findClickableElement = function(e) {
160160
if (!e.tagName) return null;
161161
var tagName = e.tagName.toLowerCase();
162162
var type = e.type;
163-
if (e.hasAttribute("onclick") || e.hasAttribute("href") || tagName == "button" ||
164-
(tagName == "input" &&
163+
if (e.hasAttribute("onclick") || e.hasAttribute("href") || tagName == "button" || tagName == "a" ||
164+
(tagName == "input" &&
165165
(type == "submit" || type == "button" || type == "image" || type == "radio" || type == "checkbox" || type == "reset"))) {
166166
return e;
167167
} else {

0 commit comments

Comments
 (0)