Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/l10n/tests/mochitest/l10n_overlays/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 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: '<em>Markup</em>',
      attributes: null,
    };

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

Messung V0.5 in Prozent
C=100 H=100 G=100

¤ Dauer der Verarbeitung: 0.24 Sekunden  (vorverarbeitet am  2026-08-26) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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.