Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  2014583.html

  Sprache: HTML
 

 products/Sources/formale Sprachen/C/Firefox/dom/base/crashtests/2014583.html


<!DOCTYPE html><html><head><meta charset="utf-8"></head><body><script>
// Wait for the DOM to be fully constructed
window.addEventListener('DOMContentLoaded', () => {
    // Clear ALL children from body - including parser-added whitespace text nodes
    while (document.body.firstChild) {
        document.body.removeChild(document.body.firstChild);
    }

    // Build DOM: <p>myprefix</p><div></div> with NO text nodes after
    let p = document.createElement('p');
    p.textContent = 'myprefix';
    document.body.appendChild(p);

    let div = document.createElement('div');
    document.body.appendChild(div);

    // Remove any text nodes that might have been added by the parser
    // between our elements (should be none since we built programmatically)
    let walker = document.createTreeWalker(
        document.body,
        NodeFilter.SHOW_TEXT,
        null
    );
    let textsToRemove = [];
    let node;
    while (node = walker.nextNode()) {
        // Keep the "myprefix" text but remove everything else at body level
        if (node.parentNode === document.body) {
            textsToRemove.push(node);
        }
    }
    textsToRemove.forEach(n => n.remove());

    // Also ensure html element has no trailing text nodes
    while (document.documentElement.lastChild !== document.body) {
        if (document.documentElement.lastChild) {
            document.documentElement.lastChild.remove();
        } else {
            break;
        }
    }

    // Force layout so the PresShell is ready
    document.body.offsetHeight;

    // Now trigger text directive finding
    setTimeout(() => {
        location.hash = '#:~:text=myprefix-,anything';
    }, 0);
});
</script></body></html>

Messung V0.5 in Prozent
C=93 H=99 G=95

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

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






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=141584
#Domains=738142