The Wayback Machine - https://web.archive.org/web/20220319011300/https://github.com/vuejs/vue/issues/11575
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
Version
2.6.11
Reproduction link
https://jsfiddle.net/0jh1psog/
Steps to reproduce
Open the console in the provided JSFiddle
or
run
Vue.config.getTagNamespace('foreignObject')
What is expected?
Vue.config.getTagNamespace('foreignObject')
should return'svg'
What is actually happening?
It returns
undefined
.This causes a warning
Unknown custom element: <foreignObject>
when testing such components usingvue-test-utils
This is caused by
vue/src/platforms/web/util/element.js
Line 29 in 52719cc
It should be
foreignobject
with lowercaseo
here, because of themakeMap
implementation.To avoid such bugs in the future, even better fix:
vue/src/shared/util.js
Line 113 in 6fe07eb
should be
map[expectsLowerCase ? list[i].toLowerCase() : list[i]] = true
The text was updated successfully, but these errors were encountered: