<!DOCTYPE HTML>
<meta charset=utf-8>
<title>Selection: STYLE and SCRIPT elements should be included in Selection.toString() if they are display!=none</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
window.onload = function() {
  test(function() {
    var selection = window.getSelection();
    var p1 = document.getElementById("p1");

    var range = document.createRange();
    test_block_script();
    range.selectNode(p1);
    selecti