Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


";
  is(wrap.innerHTML, "

      "
      "Bad outerHTML parsing inside wrap");

        var thetr = document.getElementById("thetr");
        thetr.outerHTML = "
      ";
        var thetable = document.getElementById("thetable");
        is(thetable.innerHTML, "
      ", "Wrong outerHTML parsing inside table");

        var iframe = document.getElementsByTagName("iframe")[0];
        var oldbody = iframe.contentDocument.body;
        iframe.contentDocument.body.outerHTML = "";
        isnot(oldbody, iframe.contentDocument.body"Failed to replace body");
        is(iframe.contentDocument.getElementsByTagName("body").length, 1, "Should have gotten one body");
        // Yes, two heads per spec. Also Ragnarök and Chrome produce two heads.
        is(iframe.contentDocument.getElementsByTagName("head").length, 2, "Should have gotten two heads");

        try {
          document.documentElement.outerHTML = "";
          ok(false, "Should have thrown an exception");
        } catch(e) {
          is(e.name, "NoModificationAllowedError""outerHTML should throw NoModificationAllowedError");
          is(e.code, 7, "outerHTML should throw NO_MODIFICATION_ALLOWED_ERR");
        }

        var f = document.createDocumentFragment();
        var dl = document.createElement("dl");
        var p = document.createElement("p");
        var ol = document.createElement("ol");
        f.appendChild(dl);
        f.appendChild(p);
        f.appendChild(ol);
        p.outerHTML = "

        ";
          var fragmentwrap = document.getElementById("fragmentwrap");
          fragmentwrap.appendChild(f);
          is(fragmentwrap.innerHTML, "

            "
            "Bad outerHTML parsing in fragment");

              SimpleTest.finish();
            }

            </script>
            </pre>
            </body>
            </html>

            Quelle  test_outerHTML.html   Sprache: HTML

             
             products/Sources/formale Sprachen/C/Firefox/dom/tests/mochitest/general/test_outerHTML.html


            <!DOCTYPE HTML>
            <html>
            <!--
            https://bugzilla.mozilla.org/show_bug.cgi?id=92264
            -->

            <head>
              <title>Test for Bug 92264</title>
              <script src="/tests/SimpleTest/SimpleTest.js"></script>
              <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
            </head>
            <body onload="runTest();">
            <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=92264">Mozilla Bug 92264</a>
            <p id="display"></p>
            <div id="content" style="display: none">
            <div id="wrap"><dl></dl><p id="thep">foo<span>bar</span></p><ol></ol></div>
            <table id="thetable"><tbody><tr><td>1</td></tr><tr id="thetr"><td>2</td></tr><tr><td>3</td></tr></tbody></table>
            <iframe></iframe>
            <div id="fragmentwrap"></div>
            </div>
            <pre id="test">
            <script type="application/javascript">

            /** Test for Bug 92264 **/

            SimpleTest.waitForExplicitFinish();

            function runTest() {

              var thep = document.getElementById("thep");
              var wrap = document.getElementById("wrap");
              is(thep.outerHTML, '

            foobar

            '
            "Unexpected thep outerHTML");
              thep.outerHTML = "
              a
              b
              1
              a
              b
              3
              Messung V0.5
              C=86 H=89 G=87

              ¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet)  ¤

              *© Formatika GbR, Deutschland






              Wurzel

              Suchen

              Beweissystem der NASA

              Beweissystem Isabelle

              NIST Cobol Testsuite

              Cephes Mathematical Library

              Wiener Entwicklungsmethode

              Haftungshinweis

              Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

              Bemerkung:

              Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                                   


              Neuigkeiten

                   Aktuelles
                   Motto des Tages

              Software

                   Produkte
                   Quellcodebibliothek

              Aktivitäten

                   Artikel über Sicherheit
                   Anleitung zur Aktivierung von SSL

              Muße

                   Gedichte
                   Musik
                   Bilder

              Jenseits des Üblichen ....
                  

              Besucherstatistik

              Besucherstatistik

              Monitoring

              Montastic status badge
               




              Impressum  | Ethik und Gesetz  | Haftungsausschluß  | Kontakt  | Seitenstruktur  | © 2026 JDD |