summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/uievents/legacy-domevents-tests/approved/ProcessingInstruction.DOMCharacterDataModified.html
blob: 2da0a389e2e3bc51861fef752b11a629203897d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html>
<head>
<title> ProcessingInstruction.data and DOMCharacterDataModified event </title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id=log></div>

<iframe id="helper" style="display: none"></iframe>

<script>
    var description = "Test Description: " +
                      "DOMCharacterDataModified event fires after ProcessingInstruction.data have been modified, " +
                      "but the node itself has not been inserted or deleted. The proximal event target of this " +
                      "event shall be the ProcessingInstruction node.";

    var t = async_test(description);

    var HELPER = document.getElementById("helper");

    HELPER.onload = t.step_func(function()
    {
        assert_true(HELPER.contentWindow.TestResult);
        t.done();
    });

    HELPER.src = "./support/ProcessingInstruction.DOMCharacterDataModified.xml";
</script>
</body>
</html>