'Handle cases like this:
<h1 onmouseover="do_something(PAYLOAD)">This is a header</h1>'

def can_break_js_event(self):

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