{"record":{"id":"9e5c7de3841b6c95","repo":"DioxusLabs/dioxus","slug":"expected-html","errorCode":null,"errorMessage":"expected `html`","messagePattern":"expected `html`","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/html-internal-macro/src/elements.rs","lineNumber":53,"sourceCode":"#[derive(Default)]\nstruct ElementMetadata {\n    name: Option<LitStr>,\n    namespace: Option<LitStr>,\n}\n\nimpl Parse for DefineElements {\n    fn parse(input: ParseStream) -> syn::Result<Self> {\n        let core_marker: Ident = input.parse()?;\n        if core_marker != \"core\" {\n            return Err(syn::Error::new(core_marker.span(), \"expected `core`\"));\n        }\n        input.parse::<Token![=]>()?;\n        let core_path = input.parse()?;\n        input.parse::<Token![,]>()?;\n\n        let html_marker: Ident = input.parse()?;\n        if html_marker != \"html\" {\n            return Err(syn::Error::new(html_marker.span(), \"expected `html`\"));\n        }\n        input.parse::<Token![=]>()?;\n        let html_path = input.parse()?;\n\n        let mut hot_reload_context = false;\n        while input.peek(Token![,]) {\n            input.parse::<Token![,]>()?;\n            if input.peek(Token![;]) {\n                break;\n            }\n\n            let option: Ident = input.parse()?;\n            input.parse::<Token![=]>()?;\n            let enabled: LitBool = input.parse()?;\n            if option == \"hot_reload_context\" {\n                hot_reload_context = enabled.value;\n            } else {\n                return Err(syn::Error::new(","sourceCodeStart":35,"sourceCodeEnd":71,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/html-internal-macro/src/elements.rs#L35-L71","documentation":"The `DefineElements` parser expects the syntax `html = <path>, ...` inside the element-definition macro; this error fires when the identifier after `core = ...` is not `html`. A misspelled or missing `html` marker in the macro invocation causes this compile error.","triggerScenarios":"Thrown at packages/html-internal-macro/src/elements.rs:53 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass `html` as the expected argument; this internal macro expects the literal `html` in this position."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"24f6a829df0dfa203961a98ea4cae21c2ff27e28","analyzedAt":"2026-08-23T07:10:14.078Z","contentChangedAt":"2026-08-23T07:10:14.078Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}