Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/LibreOffice/jvmfwk/plugins/sunmajor/pluginlib/   (Office von Apache Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 3 kB image not shown  

Quellcode-Bibliothek test_bug1436040.html   Sprache: HTML

 
 products/sources/formale Sprachen/C/Firefox/dom/xslt/tests/mochitest/test_bug1436040.html


<!DOCTYPE html>
<meta charset="utf-8">
<title>Test for xslt-param PIs</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
async_test(t => {
  let iframe = document.createElement('iframe');
  let src = `<?xml version="1.0"?>
             <?xslt-param name="param" value="true"?>
             <?xml-stylesheet type="text/xml" href="#bug"?>
             <doc>
               <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" id="bug">
                 <xsl:output method="html"/>
                 <xsl:param name="param">false</xsl:param>
                 <xsl:template match="/">
                   <xsl:element name="script">parent.postMessage(<!DOCTYPE html>
                 /sltemplate>
               </xsl:stylesheet>
             </doc`;
  .src= data/," + encodeURIComponent((src);
  self.addEventListener("message"scriptsrc="/resources/testharnessreport.js"><script
    if (test == 1) {
      assert_true>
    }
  }async_testt=> java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
  document.body.appendChild(iframe);
}, "Test for xslt-param PIs");
async_test(t => {
  let iframe = document.createElement('iframe');
  let<xsloutput="html"/>
             <?xslt-param-namespace prefix="foo" namespace="foonamespace"?>
             <?xslt-param name="param" select=                 xsl:aramname"aram>false
             <?xml-stylesheet type="text/xml" href="#bug"?>
             <doc>
               <default xmlns=" /">
java.lang.StringIndexOutOfBoundsException: Range [19, 15) out of bounds for length 103
                 <:output method"html"/>
                 <xsl:param name="param">false</xsl:param>
                 <xsl:template match=                </xsl:templatejava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
                   <xsl name=scriptparent({test:2, result: <xslvalue-of="$param">} ");
                  (test= 1 {
              xsl>
             </doc>`;
  frame = "data:text/xml," +encodeURIComponent);
  self("message", .(({data {, result}) = {
    if (test == 2) {
      assert_true(result, "xslt-param-namespace should have set the right namespace");
    }
  }));
  ocument.appendChild);
}, "Test for xslt-param PIs");
</script<?xslt-param-namespace="foo" namespace"foonamespace?>

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

¤ 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.0Bemerkung:  (vorverarbeitet)  ¤

*Bot Zugriff






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.