{"record":{"id":"b910ddec1645c3a8","repo":"swc-project/swc","slug":"badstarttaginnoscriptinhead","errorCode":"BadStartTagInNoscriptInHead","errorMessage":"Bad start tag in \"{tag_name}\" in \"noscript\" in \"head\"","messagePattern":"Bad start tag in \"(.+?)\" in \"noscript\" in \"head\"","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"crates/swc_html_parser/src/parser/mod.rs","lineNumber":1991,"sourceCode":"                    // Reprocess the token.\n                    _ => {\n                        anything_else(self, token_and_info)?;\n                    }\n                }\n            }\n            // The \"in head noscript\" insertion mode\n            InsertionMode::InHeadNoScript => {\n                let anything_else =\n                    |parser: &mut Parser<I>, token_and_info: &mut TokenAndInfo| -> PResult<()> {\n                        match &token_and_info.token {\n                            Token::Character { .. } => {\n                                parser.errors.push(Error::new(\n                                    token_and_info.span,\n                                    ErrorKind::NonSpaceCharacterInNoscriptInHead,\n                                ));\n                            }\n                            Token::StartTag { tag_name, .. } => {\n                                parser.errors.push(Error::new(\n                                    token_and_info.span,\n                                    ErrorKind::BadStartTagInNoscriptInHead(tag_name.clone()),\n                                ));\n                            }\n                            Token::EndTag { tag_name, .. } => {\n                                parser.errors.push(Error::new(\n                                    token_and_info.span,\n                                    ErrorKind::StrayEndTag(tag_name.clone()),\n                                ));\n                            }\n                            Token::Eof => {\n                                parser.errors.push(Error::new(\n                                    token_and_info.span,\n                                    ErrorKind::EofWithUnclosedElements,\n                                ));\n                            }\n                            _ => {\n                                unreachable!()","sourceCodeStart":1973,"sourceCodeEnd":2009,"githubUrl":"https://github.com/swc-project/swc/blob/5176682b65416c6b5de6b47379ae1588ea3ecb3f/crates/swc_html_parser/src/parser/mod.rs#L1973-L2009","documentation":"HTML parse error in the 'in head noscript' insertion mode: a start tag that is not one of the permitted head elements (link, meta, title, script, style) appeared inside <noscript> in <head>; the tag name is captured in the error and recovery follows the anything-else rules (close noscript/head and reprocess).","triggerScenarios":"Thrown at crates/swc_html_parser/src/parser/mod.rs:1991 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Move the element out of <head><noscript> into <body>","Keep only allowed head elements (link/meta/title/script/style) inside noscript in head"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5176682b65416c6b5de6b47379ae1588ea3ecb3f","analyzedAt":"2026-08-17T16:16:52.067Z","contentChangedAt":"2026-08-17T16:16:52.067Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}