-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Closed
Description
Vue version
3.3.4
Link to minimal reproduction
Steps to reproduce
Run the reproduction from the link and see the output and the console.
What is expected?
firstChild is a property of an HTML node and should return the same as children[0].
This is working like that in vue2 and in vanilla JS.
What is actually happening?
in vue 3 firstChild from v-for is not returning the first html node child, but likely an internal virtual node object.
System Info
System:
OS: macOS 13.4
CPU: (10) arm64 Apple M1 Max
Memory: 128.28 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 16.18.1 - ~/.volta/tools/image/node/16.18.1/bin/node
Yarn: 1.22.19 - ~/.volta/tools/image/yarn/1.22.19/bin/yarn
npm: 8.19.2 - ~/.volta/tools/image/node/16.18.1/bin/npm
Browsers:
Chrome: 118.0.5993.88
Firefox: 118.0.2
Safari: 16.5
npmPackages:
vue: 3.3.4 => 3.3.4Any additional comments?
No response
Metadata
Metadata
Assignees
Labels
No labels
