let depth = 0; const len = html.length; for (let i = 0; i < len; i++) { if (html.charCodeAt(i) !== 60) { continue;
} const next = html.charCodeAt(i + 1); if (next === 33 || next === 63) { continue;
}
let j = i + 1;
let closing = false; if (html.charCodeAt(j) === 47) {
closing = true;
j += 1;
}
while (j < len && html.charCodeAt(j) <= 32) {
j += 1;
}
const nameStart = j; while (j < len) { const c = html.charCodeAt(j); const isNameChar =
(c >= 65 && c <= 90) ||
(c >= 97 && c <= 122) ||
(c >= 48 && c <= 57) ||
c === 58 ||
c === 45; if (!isNameChar) { break;
}
j += 1;
}
const tagName = normalizeLowercaseStringOrEmpty(html.slice(nameStart, j)); if (!tagName) { continue;
}
if (closing) {
depth = Math.max(0, depth - 1); continue;
} if (voidTags.has(tagName)) { continue;
}
let selfClosing = false; for (let k = j; k < len && k < j + 200; k++) { const c = html.charCodeAt(k); if (c === 62) {
selfClosing = html.charCodeAt(k - 1) === 47; break;
}
} if (selfClosing) { continue;
}
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.