PageSourceSearch

https://linthtml.vercel.app/assets/js/1bfd822a.29a2970e.js

js linthtml.vercel.app collected 2026-10-03 07:15:09 UTC 3,107 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunk_linthtml_doc=globalThis.webpackChunk_linthtml_doc||[]).push([[5533],{8323(e,t,n){n.r(t),n.d(t,{assets:()=>r,contentTitle:()=>d,default:()=>h,frontMatter:()=>o,metadata:()=>l,toc:()=>a});const l=JSON.parse('{"id":"user-guide/rules/list/head-valid-content-model","title":"head-valid-content-model","description":"If set, the content-model of the HEAD element will be enforced, only base, link, meta, noscript, script, style, template and title tags are legal children.","source":"@site/docs/user-guide/rules/list/head-valid-content-model.md","sourceDirName":"user-guide/rules/list","slug":"/user-guide/rules/list/head-valid-content-model","permalink":"/user-guide/rules/list/head-valid-content-model","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"head-req-title","permalink":"/user-guide/rules/list/head-req-title"},"next":{"title":"href-style","permalink":"/user-guide/rules/list/href-style"}}');var i=n(2540),s=n(3023);const o={},d="head-valid-content-model",r={},a=[];function c(e){const t={code:"code",h1:"h1",header:"header",p:"p",pre:"pre",...(0,s.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"head-valid-content-model",children:"head-valid-content-model"})}),"\n",(0,i.jsxs)(t.p,{children:["If set, the content-model of the HEAD element will be enforced, only ",(0,i.jsx)(t.code,{children:"base"}),", ",(0,i.jsx)(t.code,{children:"link"}),", ",(0,i.jsx)(t.code,{children:"meta"}),", ",(0,i.jsx)(t.code,{children:"noscript"}),", ",(0,i.jsx)(t.code,{children:"script"}),", ",(0,i.jsx)(t.code,{children:"style"}),", ",(0,i.jsx)(t.code,{children:"template"})," and ",(0,i.jsx)(t.code,{children:"title"})," tags are legal children."]}),"\n",(0,i.jsx)(t.p,{children:"The following patterns are considered violations:"}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-html",children:"<head>\n  <div>Content</div>\n</head>\n"})}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-html",children:"<head>\n  <button>A button</button>\n</head>\n"})}),"\n",(0,i.jsx)(t.p,{children:"The following patterns are not considered violations:"}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-html",children:'<head>\n  <meta charset="UTF-8">\n  <meta name="viewport" content="initial-scale=1, maximum-scale=1">\n  <meta http-equiv="X-UA-Compatible" content="IE=Edge">\n  <title>Title</title>\n  <link rel="icon" type="image/png" href="/favicon.ico">\n</head>\n'})})]})}function h(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(c,{...e})}):c(e)}},3023(e,t,n){n.d(t,{R:()=>o,x:()=>d});var l=n(3696);const i={},s=l.createContext(i);function o(e){const t=l.useContext(s);return l.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function d(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:o(e.components),l.createElement(s.Provider,{value:t},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.