Sha256: d73348b4eaf49f3b59c41f59da7fbeecce89196fef4a08869c9d83e4558eee5c
Contents?: true
Size: 723 Bytes
Versions: 29
Compression:
Stored size: 723 Bytes
Contents
var WhowishWordElementGuard = { check: function(element){ return (this.getRelevantAttributes(element).length > 0) }, getRelevantAttributes: function(element) { var attrs = []; for (var i = 0; i < element.attributes.length; i++) { var attr_name = element.attributes[i].name.toLowerCase(); if (attr_name == "id") continue; if (attr_name == "value") continue; if ($w('#' + whowishWordHelper.makeEditIconId(element, attr_name)).length > 0) continue; var value = element.attributes[i].value; if (typeof(value).toLowerCase() != "string") continue; if (whowishWordHelper.match(value)) { attrs.push(element.attributes[i].name); } } return attrs; } };
Version data entries
29 entries across 29 versions & 1 rubygems