-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
fix(compiler-dom): improve HTML nesting validation to allow any child element within template tag #13320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe changes update the HTML nesting validation logic to allow any child within a Changes
Sequence Diagram(s)sequenceDiagram
participant Validator as isValidHTMLNesting
participant Caller as ValidationCaller
Caller->>Validator: validate(parent, child)
alt parent is 'template'
Validator-->>Caller: return true
else
Validator->>Validator: check standard HTML nesting rules
Validator-->>Caller: return true/false
end
Assessment against linked issues
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🧰 Additional context used🧬 Code Graph Analysis (1)packages/compiler-dom/__tests__/transforms/validateHtmlNesting.spec.ts (1)
⏰ Context from checks skipped due to timeout of 90000ms (3)
🔇 Additional comments (4)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Size ReportBundles
Usages
|
@vue/compiler-core
@vue/compiler-dom
@vue/compiler-ssr
@vue/compiler-sfc
@vue/reactivity
@vue/runtime-core
@vue/runtime-dom
@vue/shared
vue
@vue/compat
@vue/server-renderer
commit: |
Maybe we can add some unit tests |
- copy all tests from https://github.com/MananTank/validate-html-nesting - add test for #13318
close #13318
Summary by CodeRabbit
Bug Fixes
Tests