'Handle cases like this:
<a href="javascript:do_something(PAYLOAD)">This is a link</a>'

def is_executable_html_attr_with_js_protocol(self):

    if (self.name not in EXECUTABLE_ATTRS):
        return False
    script_text = self.extract_code()
    if (self.value == script_text):
        return False
    for js_context in get_js_context_iter(script_text, self.payload):
        if js_context.is_executable():
            return True
    return False
