Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.

fix(head): allow using the default slot for script content like noscript#7858

Merged
atinux merged 1 commit intonuxt:mainfrom
MiniDigger:feat/7853
Oct 3, 2022
Merged

fix(head): allow using the default slot for script content like noscript#7858
atinux merged 1 commit intonuxt:mainfrom
MiniDigger:feat/7853

Conversation

@MiniDigger
Copy link
Copy Markdown
Contributor

@MiniDigger MiniDigger commented Sep 27, 2022

🔗 Linked issue

Resolves nuxt/nuxt#15033

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Resolves nuxt/nuxt#15033 by aligning the script component's functionality to the noscript and style tags, which already allow using the default slot to specify the children property of useHead.

(not sure if this should be marked as a new feature or an enhancement)
(I also did not find any documentation that I should update, the documentation is written in a way where I already thought this is possible :P)

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@codesandbox
Copy link
Copy Markdown

codesandbox Bot commented Sep 27, 2022

CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders

@netlify
Copy link
Copy Markdown

netlify Bot commented Sep 27, 2022

Deploy Preview for nuxt3-docs canceled.

Name Link
🔨 Latest commit f7e45c9
🔍 Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/6332c4d3c6534800092c4eba

@danielroe danielroe changed the title feat(head): allow using the default slot for script content (closes feat(head): allow using the default slot for script content Sep 27, 2022
@atinux atinux changed the title feat(head): allow using the default slot for script content fix(head): allow using the default slot for script content like noscript Oct 3, 2022
@atinux atinux merged commit 63c8805 into nuxt:main Oct 3, 2022
@MiniDigger MiniDigger deleted the feat/7853 branch October 3, 2022 14:48
@danielroe danielroe mentioned this pull request Oct 9, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support using textContent of <Script> head component

3 participants