{"record":{"id":"c2e922497e1dd62e","repo":"zed-industries/zed","slug":"created-element-is-not-an-input-e","errorCode":null,"errorMessage":"Created element is not an input: {e:?}","messagePattern":"Created element is not an input: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/gpui_web/src/window.rs","lineNumber":152,"sourceCode":"        }\n\n        let body = document\n            .body()\n            .ok_or_else(|| anyhow::anyhow!(\"No `body` found on document\"))?;\n        body.append_child(&canvas)\n            .map_err(|error| anyhow::anyhow!(\"Failed to append canvas to body: {error:?}\"))?;\n        Ok(canvas)\n    }\n\n    #[allow(clippy::too_many_arguments)]\n    pub(crate) fn new(\n        _handle: AnyWindowHandle,\n        _params: WindowParams,\n        context: &WgpuContext,\n        canvas: web_sys::HtmlCanvasElement,\n        surface: wgpu::Surface<'static>,\n        browser_window: web_sys::Window,\n        lifecycle: Rc<Cell<WebWindowLifecycle>>,\n        active_window: Rc<RefCell<Option<AnyWindowHandle>>>,\n    ) -> anyhow::Result<Self> {\n        let document = browser_window\n            .document()\n            .ok_or_else(|| anyhow::anyhow!(\"No `document` found on window\"))?;\n        let body = document\n            .body()\n            .ok_or_else(|| anyhow::anyhow!(\"No `body` found on document\"))?;\n        let dpr = browser_window.device_pixel_ratio() as f32;\n        let max_texture_dimension = context.device.limits().max_texture_dimension_2d;\n        let has_device_pixel_support = check_device_pixel_support();\n        let renderer_config = WgpuSurfaceConfig {\n            size: Size {\n                width: DevicePixels(0),\n                height: DevicePixels(0),\n            },\n            transparent: false,\n            preferred_present_mode: None,","sourceCodeStart":134,"sourceCodeEnd":170,"githubUrl":"https://github.com/zed-industries/zed/blob/9d272b036335401f339d024ea94968fd51016c40/crates/gpui_web/src/window.rs#L134-L170","documentation":"Guard in WebWindow::new: the created element failed dyn_into::<HtmlInputElement>, so the node intended as the hidden text-input proxy is not an <input>. Indicates createElement tampering or an unusual DOM environment.","triggerScenarios":"Thrown at crates/gpui_web/src/window.rs:145 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Log the actual tagName/constructor of the returned element to diagnose interference","Avoid libraries that patch document.createElement in the host page","Treat as an unsupported environment and fail window creation with the cast error"],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9d272b036335401f339d024ea94968fd51016c40","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}