A JavaScript implementation of various web standards, for use with Node.js
This report summarizes scanner evidence for jsdom/jsdom, a JavaScript project with 21,742 GitHub stars. SynthScan examined 180,046 lines of code across 1172 source files, recording 245 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 1.4 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 234 finding(s).
Are imports declared and package/API names verified? 11 finding(s).
Are wrappers, guards, and repeated structures necessary? 197 finding(s).
Which changes need focused human review? 245 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 245 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmark/forms/form-owner.js | 48 | function createExplicitOwnerFixture( | CODE |
| LOW | benchmark/forms/form-owner.js | 75 | function createFormOperationsFixture(controlCount, outsideElementCount, external) { | CODE |
| LOW | benchmark/style/stylesheet-scaling.js | 99 | function createNewCustomStylesheetText() { | CODE |
| LOW | test/web-platform-tests/wpt-server.js | 136 | function terminateSubprocessOnError(err) { | CODE |
| LOW | test/web-platform-tests/run-single-wpt.js | 18 | function unexpectedPassingTestMessage(expectationsFilename) { | CODE |
| LOW | test/api/options-run-scripts.js | 174 | function createJSDOMWithParsedHandlers() { | CODE |
| LOW | test/api/options-run-scripts.js | 331 | function createJSDOMWithParsedHandlers() { | CODE |
| LOW | test/api/options-run-scripts.js | 487 | function testEventHandlersFromTheOutside(runScriptsOptionValue) { | CODE |
| LOW | test/api/css-parsing-errors.js | 187 | function cssParsingErrorRecordingVC() { | CODE |
| LOW | test/api/resources-dispatcher.js | 223 | function createCapturingDispatcher() { | CODE |
| LOW | test/api/helpers/servers.js | 41 | function enablePromisifiedServerDestroy(server) { | CODE |
| LOW | test/api/helpers/resources.js | 63 | function resourceLoadingErrorRecordingVC() { | CODE |
| LOW | test/to-port-to-wpts/level3/xpath.js | 407 | function testDescendantDfsAndSelfBase(test, andSelf) { | CODE |
| LOW | test/to-port-to-wpts/jquery-fixtures/jquery-1.11.0.js | 8631 | function addToPrefiltersOrTransports( structure ) { | CODE |
| LOW | test/to-port-to-wpts/jquery-fixtures/jquery-1.11.0.js | 8663 | function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 70 | function serializeArbitraryDeclaration(declaration) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 117 | function serializeAttributeSelector({ value }) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 152 | function serializeBaselinePosition([place]) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 317 | function serializeCalculationFunction({ value }) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 365 | function serializeColorInterpolationMethod([, method]) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 716 | function getDefaultGradientInterpolation(stops) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 755 | function serializeConicGradientSyntax([configuration, , stops]) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 791 | function serializeCustomFunctionDefinition(definition) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 923 | function serializeIdentifierFromPrimitive(value) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 968 | function serializeKeyframeSelector(selector) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 1010 | function serializeLinearGradientSyntax([configuration, , stops]) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 1039 | function serializeNumberFromPrimitive(value) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 1136 | function serializeRadialGradientSyntax([configuration, , stops]) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 1216 | function serializeRelativeControlPoint(point) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 1257 | function scalePercentagesToNumbers(value) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 1349 | function serializeStepEasingFunction({ value }) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 1371 | function serializeStringFromPrimitive(value) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 1424 | function serializeURLFromPrimitive(value) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 1452 | function serializePageSelectorList(selectors) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 1845 | function representAnimationRangeLonghand(range, origin) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 1858 | function representAnimationRangeValue(start, end, initial) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 1978 | function representBackgroundPosition(declarations) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 1988 | function representBackgroundRepeat(declarations) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 2071 | function representCommonLonghandValue(declarations) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 2522 | function representHyphenateLimitChars(limit) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 2535 | function representImageOrientation(orientation) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 2738 | function representOverflowClipMargin(margin) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 3039 | function representTextDecorationSkip(declarations, longhands) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 3052 | function representTextDecorationSkipSelf(lines) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 3059 | function representTextEmphasisPosition(position) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 3247 | function representViewTimelineInset(inset) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 3261 | function representWithoutInitialValues(values, longhands, preserve) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 3278 | function representDeclarationValue({ computed, name, pending, shorthand, source, value }) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 3644 | function serializeDeclarationValue(declaration) { | CODE |
| LOW | lib/jsdom/living/css/serialize.js | 3689 | function serializeDeclarationBlock(declarations, shorthands, serializeSpecifiedValue) { | CODE |
| LOW | lib/jsdom/living/css/CSSImportRule-impl.js | 11 | function isMatchingImportConditions(rule, globalObject) { | CODE |
| LOW | lib/jsdom/living/css/resolve.js | 383 | function collectStyleSheetCandidates(element, sheet, context, candidates) { | CODE |
| LOW | lib/jsdom/living/css/resolve.js | 577 | function getDeclarationSpecificity(declaration) { | CODE |
| LOW | lib/jsdom/living/css/resolve.js | 791 | function createSubstitutionContext(property) { | CODE |
| LOW | lib/jsdom/living/css/resolve.js | 820 | function countInvalidSubstitutions(value, styleComparisonsOnly = false) { | CODE |
| LOW | lib/jsdom/living/css/resolve.js | 1346 | function getAnimationTimelineInterpolationProgress() { | CODE |
| LOW | lib/jsdom/living/css/resolve.js | 1375 | function getComputedCalculationFunction(fn, element, property) { | CODE |
| LOW | lib/jsdom/living/css/resolve.js | 1739 | function getComputedNumericContext(value, property, element) { | CODE |
| LOW | lib/jsdom/living/css/resolve.js | 1830 | function getComputedFilterFunction(filter, property, element) { | CODE |
| LOW | lib/jsdom/living/css/resolve.js | 1868 | function getComputedComponentValue(value, property, element) { | CODE |
| 137 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …upstream/hr-time/performance-tojson-dont-upstream.html | 21 | // assert_equals(typeof(timing.toJSON), 'function'); | COMMENT |
| LOW | …upstream/hr-time/performance-tojson-dont-upstream.html | 41 | // 'responseEnd', | COMMENT |
| LOW | …upstream/hr-time/performance-tojson-dont-upstream.html | 61 | // const navigationJSON = navigation.toJSON(); | COMMENT |
| LOW | test/to-port-to-wpts/level3/xpath.js | 861 | // variables, but DOM 3 XPath does not provide any facility to set variables. | COMMENT |
| LOW | test/to-port-to-wpts/level3/xpath.js | 881 | // exports.NIST_coreFunction020 = function(test) { | COMMENT |
| LOW | test/to-port-to-wpts/level3/xpath.js | 901 | // xpath.evaluate("concat($variable1,$variable2,$variable3)", document, document)); | COMMENT |
| LOW | test/to-port-to-wpts/level3/xpath.js | 921 | // // set $variable2 = "cut this" | COMMENT |
| LOW | test/to-port-to-wpts/level3/xpath.js | 941 | // const document = (new JSDOM("<doc/>", { contentType: "application/xml" })).window.document; | COMMENT |
| LOW | test/to-port-to-wpts/level3/xpath.js | 961 | // | COMMENT |
| LOW | test/to-port-to-wpts/level3/xpath.js | 981 | // }; | COMMENT |
| LOW | test/to-port-to-wpts/level3/xpath.js | 1681 | COMMENT | |
| LOW | test/to-port-to-wpts/level3/xpath.js | 1701 | // var child3 = document.createElement("child3"); | COMMENT |
| LOW | test/to-port-to-wpts/level3/xpath.js | 1941 | author2.appendChild(bibliography2); | COMMENT |
| LOW | test/to-port-to-wpts/level3/xpath.js | 1961 | // var child2 = document.createElement("child2"); | COMMENT |
| LOW | test/to-port-to-wpts/level3/xpath.js | 2081 | domTestHelper.arrayEqual(assert, [child1, child2, child3], | COMMENT |
| LOW | test/to-port-to-wpts/level3/xpath.js | 2101 | // child2.appendChild(text); | COMMENT |
| LOW | test/to-port-to-wpts/level3/xpath.js | 2141 | // exports.NIST_expression026 = function(test) { | COMMENT |
| LOW | test/to-port-to-wpts/jquery-fixtures/jquery-1.11.0.js | 1201 | if ( (support.qsa = rnative.test( doc.querySelectorAll )) ) { | COMMENT |
| LOW | test/to-port-to-wpts/jquery-fixtures/jquery-1.11.0.js | 9641 | // X-Requested-With header | COMMENT |
| LOW | lib/jsdom/living/css/serialize.js | 2061 | // https://drafts.csswg.org/css-gaps-1/#propdef-row-rule-inset-start | COMMENT |
| LOW | lib/jsdom/living/css/parse/postprocess.js | 441 | COMMENT | |
| LOW | lib/jsdom/living/css/parse/postprocess.js | 1641 | } | COMMENT |
| LOW | lib/jsdom/living/css/parse/preprocess.js | 61 | } | COMMENT |
| LOW | lib/jsdom/living/css/values/pseudos.js | 261 | // https://drafts.csswg.org/css-forms-1/#selectordef-picker-icon | COMMENT |
| LOW | lib/jsdom/living/css/properties/shorthands.js | 141 | ]; | COMMENT |
| LOW | lib/jsdom/living/nodes/HTMLInputElement-impl.js | 1001 | if (!this._validity) { | COMMENT |
| LOW | lib/jsdom/living/nodes/Document-impl.js | 161 | mouseevents: MouseEvent, | COMMENT |
| LOW | lib/jsdom/living/nodes/Document-impl.js | 341 | COMMENT | |
| LOW | lib/jsdom/living/file-api/Blob-impl.js | 21 | this.type = this.type.toLowerCase(); | COMMENT |
| LOW | lib/jsdom/living/xhr/xhr-sync-worker.js | 1 | "use strict"; | COMMENT |
| LOW | lib/jsdom/living/helpers/create-event-accessor.js | 1 | "use strict"; | COMMENT |
| LOW | lib/jsdom/browser/parser/html.js | 281 | } | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | lib/jsdom/living/css/match/selector.js | 86 | email: ["autocomplete", "placeholder", "readonly", "required"], | CODE |
| LOW⚡ | lib/jsdom/living/css/match/selector.js | 91 | number: ["autocomplete", "max", "min", "placeholder", "readonly", "required"], | CODE |
| LOW⚡ | lib/jsdom/living/css/match/selector.js | 92 | password: ["autocomplete", "placeholder", "readonly", "required"], | CODE |
| LOW⚡ | lib/jsdom/living/css/match/selector.js | 96 | search: ["autocomplete", "placeholder", "readonly", "required"], | CODE |
| LOW⚡ | lib/jsdom/living/css/match/selector.js | 98 | tel: ["autocomplete", "placeholder", "readonly", "required"], | CODE |
| LOW⚡ | lib/jsdom/living/css/match/selector.js | 99 | text: ["autocomplete", "placeholder", "readonly", "required"], | CODE |
| LOW⚡ | lib/jsdom/living/css/match/selector.js | 101 | url: ["autocomplete", "placeholder", "readonly", "required"], | CODE |
| LOW⚡ | lib/jsdom/living/css/match/selector.js | 768 | inputTypeAttributes[element.type].includes("placeholder") && | CODE |
| LOW⚡ | lib/jsdom/living/css/match/selector.js | 770 | element.hasAttributeNS(null, "placeholder") | CODE |
| LOW⚡ | lib/jsdom/living/css/match/selector.js | 774 | return element.value === "" && element.hasAttributeNS(null, "placeholder"); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | test/to-port-to-wpts/jquery-fixtures/jquery-1.11.0.js | 8058 | jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lib/jsdom/living/nodes/HTMLScriptElement-impl.js | 117 | // TODO: implement modules, and then change the check to `type === null`. | COMMENT |
| LOW | lib/jsdom/living/nodes/HTMLScriptElement-impl.js | 138 | // TODO: implement nomodule here, **but only after we support modules**. | COMMENT |
| LOW | lib/jsdom/living/nodes/Document-impl.js | 358 | // TODO: implement, with tests for all code paths, the spec's behavior. | COMMENT |
| LOW | lib/jsdom/browser/Window.js | 530 | // TODO: implement timer nesting level behavior. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/to-port-to-wpts/jquery-fixtures/jquery-1.11.0.js | 10292 | // understands anonymous AMD modules. A named AMD is safest and most robust | COMMENT |