{ "tag_name": "script", "struct_name": "Script", "submodule_name": "scripting", "mdn_link": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script", "has_global_attributes": true, "has_closing_tag": true, "attributes": [ { "name": "src", "description": "Address of the resource", "field_name": "src", "ty": "KString" }, { "name": "type", "description": "Type of script", "field_name": "type_", "ty": "KString" }, { "name": "nomodule", "description": "Prevents execution in user agents that support module scripts", "field_name": "nomodule", "ty": "KString" }, { "name": "async", "description": "Execute script when available, without blocking while fetching", "field_name": "async_", "ty": "KString" }, { "name": "defer", "description": "Defer script execution", "field_name": "defer", "ty": "KString" }, { "name": "crossorigin", "description": "How the element handles crossorigin requests", "field_name": "crossorigin", "ty": "KString" }, { "name": "integrity", "description": "Integrity metadata used in Subresource Integrity checks [SRI]", "field_name": "integrity", "ty": "KString" }, { "name": "referrerpolicy", "description": "Referrer policy for fetches initiated by the element", "field_name": "referrerpolicy", "ty": "KString" }, { "name": "blocking", "description": "Whether the element is potentially render-blocking", "field_name": "blocking", "ty": "KString" }, { "name": "fetchpriority", "description": "Sets the priority for fetches initiated by the element", "field_name": "fetchpriority", "ty": "KString" } ], "dom_interface": "HTMLScriptElement", "content_categories": [ "Metadata", "Flow", "Phrasing", "ScriptSupporting" ], "permitted_child_elements": [ "Text" ] }