https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 7d5f042f7b7a4c0004679b08ec3f7ecab26fb620 authored by Simon Pieters on 28 August 2018, 10:14:54 UTC
HTML: test interaction of floating legend and flexbox/grid
Tip revision: 7d5f042
Element-outerHTML.tentative.html
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support/helper.sub.js"></script>
<body>
<div id="container"></div>
<script>
  var container = document.querySelector('#container')

  async_test(t => {
    createHTML_policy(window)
      .then(t.step_func_done(p => {
        let html = p.createHTML(INPUTS.HTML);

        var d = document.createElement('div');
        document.querySelector('#container').appendChild(d);
        d.outerHTML = html;
        assert_equals(container.innerText, RESULTS.HTML);

        while (container.firstChild)
          container.firstChild.remove();
    }));
  }, "outerHTML with html assigned via policy (successful HTML transformation).");
</script>
back to top