-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Open
Labels
🍰 p2-nice-to-havePriority 2: this is not breaking anything but nice to have it addressed.Priority 2: this is not breaking anything but nice to have it addressed.version: minor
Description
Vue version
v3.5.18
Link to minimal reproduction
Steps to reproduce
Run the reproduction above with the new customizable select elements.
Includes the new <selectedcontent> element or having <button> inside <select>, and elements inside <option>.
What is expected?
no errors or warnings
What is actually happening?
Get these warnings:
Failed to resolve component: selectedcontent
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
,
<button> cannot be child of <select>, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality.
and
<span> cannot be child of <option>, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality.
System Info
Any additional comments?
should wait for #9249 to avoid conflicts with existing components named selectedcontent
<select>- HTML standard select element inner content elements: https://html.spec.whatwg.org/multipage/dom.html#select-element-inner-content-elements
- HTML specs: https://html.spec.whatwg.org/multipage/form-elements.html#the-select-element
- MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/select
<optgroup>- HTML standard optgroup element inner content elements: https://html.spec.whatwg.org/multipage/dom.html#optgroup-element-inner-content-elements
- HTML specs: https://html.spec.whatwg.org/multipage/form-elements.html#the-optgroup-element
- MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/optgroup
<option>- HTML standard option element inner content elements: https://html.spec.whatwg.org/multipage/dom.html#option-element-inner-content-elements
- HTML specs: https://html.spec.whatwg.org/multipage/form-elements.html#the-option-element
- MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/option
<selectedcontent>
Metadata
Metadata
Assignees
Labels
🍰 p2-nice-to-havePriority 2: this is not breaking anything but nice to have it addressed.Priority 2: this is not breaking anything but nice to have it addressed.version: minor