{"record":{"id":"8be038ed096d2975","repo":"GopeedLab/gopeed","slug":"element-is-not-typable-selector","errorCode":null,"errorMessage":"element is not typable: ${selector}","messagePattern":"element is not typable: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"pkg/download/engine/webview/runtime.go","lineNumber":269,"sourceCode":"\t\tconst insertIntoEditable = (chunk) => {\n\t\t\tif (element.isContentEditable) {\n\t\t\t\telement.textContent = (element.textContent || \"\") + chunk;\n\t\t\t\temitInput();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tinsertIntoInput(chunk);\n\t\t};\n\t\tconst insertChunk = (chunk) => {\n\t\t\tconst tagName = (element.tagName || \"\").toUpperCase();\n\t\t\tif (tagName === \"INPUT\" || tagName === \"TEXTAREA\" || typeof element.value === \"string\") {\n\t\t\t\tinsertIntoInput(chunk);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (element.isContentEditable) {\n\t\t\t\tinsertIntoEditable(chunk);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthrow new Error(\"element is not typable: \" + selector);\n\t\t};\n\t\tconst chars = Array.from(String(text));\n\t\tif (delayMS > 0) {\n\t\t\treturn new Promise((resolve) => {\n\t\t\t\tlet index = 0;\n\t\t\t\tconst step = () => {\n\t\t\t\t\tif (index >= chars.length) {\n\t\t\t\t\t\tresolve(true);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tinsertChunk(chars[index]);\n\t\t\t\t\tindex += 1;\n\t\t\t\t\tsetTimeout(step, delayMS);\n\t\t\t\t};\n\t\t\t\tstep();\n\t\t\t});\n\t\t}\n\t\tfor (const char of chars) {","sourceCodeStart":251,"sourceCodeEnd":287,"githubUrl":"https://github.com/GopeedLab/gopeed/blob/7b7327ffb30816273a74b142cccc0bc10c5a4c67/pkg/download/engine/webview/runtime.go#L251-L287","documentation":"Error \"element is not typable: ${selector}\" thrown in GopeedLab/gopeed.","triggerScenarios":"Thrown at pkg/download/engine/webview/runtime.go:269 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7b7327ffb30816273a74b142cccc0bc10c5a4c67","analyzedAt":"2026-08-16T02:51:03.250Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}