Repository Analysis

jsdom/jsdom

A JavaScript implementation of various web standards, for use with Node.js

0.8 Likely human-written View on GitHub
0.8
Adjusted Score
0.8
Raw Score
100%
Time Factor
2026-05-23
Last Push
21,583
Stars
JavaScript
Language
146,895
Lines of Code
1000
Files
102
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 1HIGH 0MEDIUM 1LOW 100

Pattern Findings

102 matches across 4 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers73 hits · 76 pts
SeverityFileLineSnippet
LOWtest/web-platform-tests/wpt-server.js133function terminateSubprocessOnError(err) {
LOWtest/web-platform-tests/run-single-wpt.js18function unexpectedPassingTestMessage(expectationsFilename) {
LOW…ream/css/cssom/CSSKeyframeRule-keyText-edge-cases.html16function setAndObserve(value) {
LOW…form-tests/to-upstream/websockets/handlers/echo_wsh.py7def web_socket_do_extra_handshake(request):
LOW…form-tests/to-upstream/websockets/handlers/echo_wsh.py27def web_socket_passive_closing_handshake(request):
LOWtest/api/options-run-scripts.js149 function createJSDOMWithParsedHandlers() {
LOWtest/api/options-run-scripts.js294 function createJSDOMWithParsedHandlers() {
LOWtest/api/options-run-scripts.js442function testEventHandlersFromTheOutside(runScriptsOptionValue) {
LOWtest/api/css-parsing-errors.js127function cssParsingErrorRecordingVC() {
LOWtest/api/resources-dispatcher.js246function createCapturingDispatcher() {
LOWtest/api/helpers/servers.js41function enablePromisifiedServerDestroy(server) {
LOWtest/api/helpers/resources.js63function resourceLoadingErrorRecordingVC() {
LOWtest/to-port-to-wpts/level3/xpath.js407 function testDescendantDfsAndSelfBase(test, andSelf) {
LOWtest/to-port-to-wpts/jquery-fixtures/jquery-1.11.0.js8631function addToPrefiltersOrTransports( structure ) {
LOWtest/to-port-to-wpts/jquery-fixtures/jquery-1.11.0.js8663function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {
LOWlib/jsdom/living/css/CSSGroupingRule-impl.js41function serializeGroupingRuleBody(rules) {
LOWlib/jsdom/living/css/CSSSupportsRule-impl.js7function evaluateSupportsCondition(node) {
LOWlib/jsdom/living/css/helpers/shorthand-properties.js213function replaceBackgroundShorthand(property, properties) {
LOWlib/jsdom/living/css/helpers/shorthand-properties.js282function matchesBorderShorthandValue(property, value, shorthandValue) {
LOWlib/jsdom/living/css/helpers/shorthand-properties.js300function replaceBorderShorthandValue(value, shorthandValue) {
LOWlib/jsdom/living/css/helpers/shorthand-properties.js1032function generateBorderLineShorthand(items, property, priority = "") {
LOWlib/jsdom/living/css/helpers/shorthand-properties.js1050function generateBorderPositionShorthand(items, property, priority = "") {
LOWlib/jsdom/living/css/helpers/shorthand-properties.js1212function processShorthandProperties(shorthands) {
LOWlib/jsdom/living/css/helpers/css-values.js741function resolveBorderShorthandValue(value, subProps, parsedValues) {
LOW…sdom/living/css/helpers/generic-property-descriptor.js23function createGenericPropertyDescriptor(property, { caseSensitive, dimensionTypes = {}, functionTypes = {} }) {
LOWlib/jsdom/living/css/helpers/computed-style.js23function getComputedStyleDeclaration(elementImpl) {
LOWlib/jsdom/living/css/helpers/computed-style.js49function prepareComputedStyleDeclaration(elementImpl, styleCache) {
LOWlib/jsdom/living/css/helpers/computed-style.js138function handlePropertyForInlineStyle(property, declaration, style) {
LOWlib/jsdom/living/css/helpers/computed-style.js197function replaceEmptyValueAndKeywords(
LOWlib/jsdom/living/css/helpers/computed-style.js219function getInheritedPropertyValue(property, elementImpl, { inherit, initial, isColor }) {
LOWlib/jsdom/living/css/helpers/computed-style.js307function getParentFontSizeInPixels(elementImpl) {
LOWlib/jsdom/living/css/helpers/css-parser.js240function normalizeAndValidateNestedSelector(selectorText, parentRule) {
LOWlib/jsdom/living/css/helpers/css-parser.js431function populateGroupingRuleChildren(block, ruleImpl, globalObject, parentSheet, parentRule) {
LOWlib/jsdom/living/css/helpers/css-parser.js850function translateCounterStyleRule(node, globalObject, parentSheet, parentRule) {
LOWlib/jsdom/living/css/helpers/css-parser.js881function populateDeclarationsAndNestedRules(block, ruleImpl, globalObject, parentSheet) {
LOWlib/jsdom/living/css/helpers/css-parser.js1004function parseDeclarationsAsNestedRule(text, globalObject) {
LOWlib/jsdom/living/nodes/HTMLOptionElement-impl.js128function childTextContentExcludingDescendantsOfScript(root) {
LOWlib/jsdom/living/nodes/ParentNode-impl.js83function shouldAlwaysSelectNothing(elImpl) {
LOWlib/jsdom/living/nodes/HTMLTextAreaElement-impl.js221function textareaWrappingTransformation(text, cols) {
LOWlib/jsdom/living/nodes/HTMLLabelElement-impl.js11function sendClickToAssociatedNode(node) {
LOWlib/jsdom/living/websockets/WebSocket-impl.js198function wrapAndRethrowNodeDOMExceptions(func, globalObject) {
LOWlib/jsdom/living/file-api/Blob-impl.js7function convertLineEndingsToNative(s) {
LOWlib/jsdom/living/xhr/XMLHttpRequest-impl.js161function setResponseToNetworkError(xhr) {
LOWlib/jsdom/living/fetch/header-types.js7function isPrivilegedNoCORSRequestHeaderName(name) {
LOWlib/jsdom/living/fetch/header-types.js18function isNoCORSSafelistedRequestHeaderName(name) {
LOWlib/jsdom/living/fetch/header-types.js24function isForbiddenResponseHeaderName(name) {
LOWlib/jsdom/living/fetch/header-types.js31function isCORSSafelistedRequestHeader(name, value) {
LOWlib/jsdom/living/fetch/header-types.js74function isNoCORSSafelistedRequestHeader(name, value) {
LOW…m/living/custom-elements/CustomElementRegistry-impl.js24function convertToSequenceDOMString(obj) {
LOWlib/jsdom/living/events/EventTarget-impl.js300function innerInvokeEventListeners(eventImpl, listeners, phase, itemInShadowTree) {
LOWlib/jsdom/living/events/EventTarget-impl.js382function flattenMoreEventListenerOptions(options) {
LOWlib/jsdom/living/events/EventTarget-impl.js402function flattenEventListenerOptions(options) {
LOWlib/jsdom/living/range/boundary-point.js8function compareBoundaryPointsPosition(bpA, bpB) {
LOWlib/jsdom/living/helpers/mutation-observers.js110function queueAttributeMutationRecord(target, name, namespace, oldValue) {
LOWlib/jsdom/living/helpers/mutation-observers.js125function queueMutationObserverMicrotask() {
LOWlib/jsdom/living/helpers/create-element.js305function internalCreateElementNSSteps(document, namespace, qualifiedName, options) {
LOWlib/jsdom/living/helpers/custom-elements.js201function enqueueElementOnAppropriateElementQueue(element) {
LOWlib/jsdom/living/helpers/custom-elements.js223function enqueueCECallbackReaction(element, callbackName, args) {
LOWlib/jsdom/living/helpers/dates-and-times.js9function numberOfDaysInMonthOfYear(month, year) {
LOWlib/jsdom/living/helpers/dates-and-times.js97function isValidYearlessDateString(str) {
13 more matches not shown…
Over-Commented Block27 hits · 27 pts
SeverityFileLineSnippet
LOW…adata/the-link-element/resources/stylesheet-colors.css1#target404 { color: rgb(255, 0, 0); }
LOW…upstream/hr-time/performance-tojson-dont-upstream.html21 // assert_equals(typeof(timing.toJSON), 'function');
LOW…upstream/hr-time/performance-tojson-dont-upstream.html41 // 'responseEnd',
LOW…upstream/hr-time/performance-tojson-dont-upstream.html61 // const navigationJSON = navigation.toJSON();
LOW…ests/to-upstream/hr-time/timeOrigin-dont-upstream.html21
LOWtest/to-port-to-wpts/level3/xpath.js861 // variables, but DOM 3 XPath does not provide any facility to set variables.
LOWtest/to-port-to-wpts/level3/xpath.js881 // exports.NIST_coreFunction020 = function(test) {
LOWtest/to-port-to-wpts/level3/xpath.js901 // xpath.evaluate("concat($variable1,$variable2,$variable3)", document, document));
LOWtest/to-port-to-wpts/level3/xpath.js921 // // set $variable2 = "cut this"
LOWtest/to-port-to-wpts/level3/xpath.js941 // const document = (new JSDOM("<doc/>", { contentType: "application/xml" })).window.document;
LOWtest/to-port-to-wpts/level3/xpath.js961 //
LOWtest/to-port-to-wpts/level3/xpath.js981 // };
LOWtest/to-port-to-wpts/level3/xpath.js1681
LOWtest/to-port-to-wpts/level3/xpath.js1701 // var child3 = document.createElement("child3");
LOWtest/to-port-to-wpts/level3/xpath.js1941 author2.appendChild(bibliography2);
LOWtest/to-port-to-wpts/level3/xpath.js1961 // var child2 = document.createElement("child2");
LOWtest/to-port-to-wpts/level3/xpath.js2081 domTestHelper.arrayEqual(assert, [child1, child2, child3],
LOWtest/to-port-to-wpts/level3/xpath.js2101 // child2.appendChild(text);
LOWtest/to-port-to-wpts/level3/xpath.js2141 // exports.NIST_expression026 = function(test) {
LOWtest/to-port-to-wpts/jquery-fixtures/jquery-1.11.0.js1201 if ( (support.qsa = rnative.test( doc.querySelectorAll )) ) {
LOWtest/to-port-to-wpts/jquery-fixtures/jquery-1.11.0.js9641 // X-Requested-With header
LOWscripts/verify-tuwpts-in-browser.js1#!/usr/bin/env node
LOWlib/jsdom/living/nodes/Document-impl.js261 }
LOWlib/jsdom/living/file-api/Blob-impl.js21 this.type = this.type.toLowerCase();
LOWlib/jsdom/living/xhr/xhr-sync-worker.js1"use strict";
LOWlib/jsdom/living/helpers/node.js41 }
LOWlib/jsdom/living/helpers/create-event-accessor.js1"use strict";
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippet
CRITICALtest/to-port-to-wpts/jquery-fixtures/jquery-1.11.0.js8058jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMtest/to-port-to-wpts/jquery-fixtures/jquery-1.11.0.js10292// understands anonymous AMD modules. A named AMD is safest and most robust