function xsltProcessorCreatedScriptRan() {
xlstProcessorState = true;
}
function iframeloaded() {
ok(asyncState, "Async script should have run.");
is(scriptState, 5, "Five scripts should have run.");
var processor = new XSLTProcessor();
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (this.readyState == 4) {
processor.importStylesheet(this.responseXML);
xhr.onreadystatechange = function() {
if (this.readyState == 4) { var doc = processor.transformToDocument(this.responseXML); var target = document.getElementById("display");
target.appendChild(doc.documentElement.firstChild);
ok(!xlstProcessorState, "Scripts created by transformToDocument should not run.");
var fragment = processor.transformToFragment(this.responseXML, document);
target.appendChild(fragment.firstChild.firstChild);
ok(xlstProcessorState, "Scripts created by transformToFragment should run.");
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.