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

Quelle  test_title.html   Sprache: HTML

 
 products/Sources/formale Sprachen/C/Firefox/dom/l10n/tests/mochitest/l10n_overlays/test_title.html


<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  <title>Test L10nOverlays Special treatment of the title element</title>
  <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css">
  <script type="application/javascript">
  /* global L10nOverlays */
  "use strict";

  function elem(name) {
    return function(str) {
      const element = document.createElement(name);
      element.innerHTML = str;
      return element;
    };
  }

  const { translateElement } = L10nOverlays;

  {
    // Text is fine.
    const element = elem("title")``;
    const translation = {
      value: 'Text',
      attributes: null,
    };

    translateElement(element, translation);
    is(
      element.innerHTML,
      'Text'
    );
  }

  {
    // Markup is ignored.
    const element = elem("title")``;
    const translation = {
      value: 'Markup',
      attributes: null,
    };

    translateElement(element, translation);
    is(
      element.textContent,
      'Markup'
    );
    is(
      element.innerHTML,
      '<em>Markup</em>'
    );
  }
  </script>
</head>
<body>
</body>
</html>

Messung V0.5
C=94 H=92 G=92

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© 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.