-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
fix(vdom): add null check in fragment removal Add null check for 'cu… #13737
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
base: main
Are you sure you want to change the base?
Conversation
…' in removeFragment function to prevent potential null reference errors when traversing DOM nodes. The while loop now verifies 'cur' exists before comparing with 'end'. This makes the fragment removal more robust when dealing with edge cases.
WalkthroughThe update adjusts the loop condition in the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (1)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Please provide a minimal reproducible demo so we can investigate the actual issue. |
![]() |
![]() I understand the reason now. It's because the generated code contains this location.protocol != 'file:' check, which causes both the type='module' and nomodule scripts in index.html to execute. I happen to be using the file:// protocol. Why was this check added here? Is there a config option to remove this check?" @edison1105 |
This code appears to be plugin-generated. However, per your diagnostic findings, the issue originates from the plugin implementation rather than vuejs/core. |
fix(vdom): add null check in fragment removal
Add null check for 'cur' in removeFragment function to prevent potential
null reference errors when traversing DOM nodes. The while loop now
verifies 'cur' exists before comparing with 'end'.
This makes the fragment removal more robust when dealing with edge cases.
Summary by CodeRabbit