1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00
elinks/test/ecmascript/assert/event.html
Witold Filipczyk 67deceb07a [ecmascript] Added event.target getters
It does not work, it is a bug in libdom (unintialised value).
2024-05-23 16:23:47 +02:00

13 lines
371 B
HTML

<script>
var e = new Event('message', { cancelable: true });
console.error('event.html');
console.assert(e.target === null, e.target);
console.assert(e.cancelable, 'cancelable true');
console.assert(!e.defaultPrevented, 'false');
e.preventDefault();
console.assert(e.defaultPrevented, 'true');
console.assert(e.type === 'message', 'message');
console.exit(0);
</script>