35 lines
715 B
HTML
35 lines
715 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<body>
|
|
<script src="../../resources/js-test.js"></script>
|
|
|
|
<script>
|
|
description("Tests that only HTML spaces in a script's 'event' / 'for' attributes are stripped.");
|
|
var wasExecuted = false;
|
|
// U+000B /  is not an HTML space.
|
|
</script>
|
|
|
|
<script for="window" event="onload">
|
|
wasExecuted = true;
|
|
</script>
|
|
|
|
<script>
|
|
debug("* for=\"&#xb;window&#xb;\" event=\"onload\"");
|
|
shouldBeFalse("wasExecuted");
|
|
wasExecuted = false;
|
|
</script>
|
|
|
|
<script for="window" event="onload">
|
|
wasExecuted = true;
|
|
</script>
|
|
|
|
<script>
|
|
debug("");
|
|
debug("* for=\"window\" event=\"&#xb;onload&#xb;\"");
|
|
shouldBeFalse("wasExecuted");
|
|
wasExecuted = false;
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|