summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/html/details-add-summary-child-2.html
blob: fd152bd1f5d1430da88c9751592193384ce8e66a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<script>
var createNewElement = function (tag, id, text) {
    var result = document.createElement(tag);
    result.setAttribute('id',id);
    result.innerHTML = text;
    return result;
};

var runTests = function () {
    document.getElementById("toappended").appendChild(createNewElement("b", "toadd", "should have bold test"));
};
</script>

<body onload="runTests()">
    <details open>
        <summary id="summary">summary <span id="toappended"></span></summary>
    </details>
</body>