Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/layout/svg/tests/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 3 kB image not shown  

Quellcode-Bibliothek file_disabled_iframe.html   Interaktion und
PortierbarkeitHTML

 
 products/Sources/formale Sprachen/C/Firefox/layout/svg/tests/file_disabled_iframe.html


<!doctype html>
<script>
  window.is = window.parent.is;
  window.SimpleTest = window.parent.SimpleTest;
</script>
<div id="testnodes"><span>hi</span> there <!-- mon ami --></div>
<script>
  let t = document.getElementById('testnodes');
  t.innerHTML = null;
  t.appendChild(document.createElementNS("http://www.w3.org/2000/svg""svg:svg"));
  t.firstChild.textContent = "";
  is(t.innerHTML, "<foo>");

  // This test crashes if the style tags are not handled correctly
  t.innerHTML = `<svg version="1.1">
    <style>
        circle {
            fill: currentColor;
        }
    </style>
    <g><circle cx="25.8" cy="9.3" r="1.5"/></g>
  </svg>
  `;
  is(t.firstChild.tagName.toLowerCase(), 'svg');

  // This test crashes if the script tags are not handled correctly
  t.innerHTML = `<svg version="1.1">
    <scri` + `pt>
      throw "badment, should never fire.";
    </scri` + `pt>
    <g><circle cx="25.8" cy="9.3" r="1.5"/></g>
  </svg>`;
  is(t.firstChild.tagName.toLowerCase(), 'svg');

  t.innerHTML = null;
  t.appendChild(document.createElementNS("http://www.w3.org/2000/svg""svg"));
  is(t.firstChild.namespaceURI, "http://www.w3.org/2000/svg");
  t.firstChild.appendChild(document.createElementNS("http://www.w3.org/2000/svg""script"));
  is(t.firstChild.firstChild.namespaceURI, "http://www.w3.org/2000/svg");
  t.firstChild.firstChild.textContent = "1&2<3>4\xA0";
  is(t.innerHTML, '');

  t.innerHTML = null;
  t.appendChild(document.createElementNS("http://www.w3.org/2000/svg""svg"));
  is(t.firstChild.namespaceURI, "http://www.w3.org/2000/svg");
  t.firstChild.appendChild(document.createElementNS("http://www.w3.org/2000/svg""style"));
  is(t.firstChild.firstChild.namespaceURI, "http://www.w3.org/2000/svg");
  t.firstChild.firstChild.textContent = "1&2<3>4\xA0";
  is(t.innerHTML, '');

  //
  // Tests for Bug 1673237
  //

  // This test fails if about:blank renders SVGs
  t.innerHTML = null;
  var iframe = document.createElement("iframe");
  iframe.setAttribute("src""about:blank")
  t.appendChild(iframe);
  iframe.appendChild(document.createElementNS("http://www.w3.org/2000/svg""svg:svg"));
  iframe.firstChild.textContent = "";
  is(iframe.innerHTML, "<foo>");

  // This test fails if about:blank renders SVGs
  var win = window.open("about:blank");
  win.document.body.appendChild(document.createElementNS("http://www.w3.org/2000/svg""svg:svg"))
  win.document.body.firstChild.textContent = "";
  is(win.document.body.innerHTML, "<foo>");
  win.close();

  // This test fails if about:srcdoc renders SVGs
  t.innerHTML = null;
  iframe = document.createElement("iframe");
  iframe.srcdoc = "";
  iframe.onload = function() {
    iframe.contentDocument.body.firstChild.textContent = "";
    is(iframe.contentDocument.body.innerHTML, "<foo>");
    SimpleTest.finish();
  }
  t.appendChild(iframe);
</script>

Messung V0.5
C=99 H=100 G=99

¤ 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.0.48Bemerkung:  Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können  ¤

*Eine klare Vorstellung vom Zielzustand






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.