Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions javascript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,10 @@ function finalizeCanonicalParts(parts) {
* 5. Decodes HTML entities.
* 6. Applies the full text normalization pipeline (`normalizeText`).
*
* This implementation is regex-based and is sufficient for signed content
* as typically produced by CMS platforms (blog posts, articles, news
* stories). For pathological or adversarial input, a real DOM parser
* should be used instead; the library API is compatible.
* The fragment is parsed with parse5, then walked as a DOM. A portable-profile
* validation pass rejects parser recovery and unsupported input before the
* parsed tree is traversed, so the same input produces the same result across
* bindings.
*
* @param {string} html - HTML fragment to canonicalize
* @param {object} [options] - Options passed through to normalizeText
Expand Down
Loading