Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix #2024 - Accessing HTMLElement and SVGElement through window #2025

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

Merged
merged 2 commits into from
Nov 7, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion 5 packages/server-test-utils/dist/vue-server-test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -8084,7 +8084,10 @@ ErrorWrapper.prototype.destroy = function destroy () {
*/

function isStyleVisible(element) {
if (!(element instanceof HTMLElement) && !(element instanceof SVGElement)) {
if (
!(element instanceof window.HTMLElement) &&
!(element instanceof window.SVGElement)
) {
return false
}

Expand Down
5 changes: 4 additions & 1 deletion 5 packages/shared/is-visible.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
*/

function isStyleVisible(element) {
if (!(element instanceof HTMLElement) && !(element instanceof SVGElement)) {
if (
!(element instanceof window.HTMLElement) &&
!(element instanceof window.SVGElement)
) {
return false
}

Expand Down
5 changes: 4 additions & 1 deletion 5 packages/test-utils/dist/vue-test-utils.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -9011,7 +9011,10 @@ ErrorWrapper.prototype.destroy = function destroy () {
*/

function isStyleVisible(element) {
if (!(element instanceof HTMLElement) && !(element instanceof SVGElement)) {
if (
!(element instanceof window.HTMLElement) &&
!(element instanceof window.SVGElement)
) {
return false
}

Expand Down
5 changes: 4 additions & 1 deletion 5 packages/test-utils/dist/vue-test-utils.iife.js
Original file line number Diff line number Diff line change
Expand Up @@ -9015,7 +9015,10 @@ var VueTestUtils = (function (exports, Vue, vueTemplateCompiler) {
*/
3rdvision marked this conversation as resolved.
Show resolved Hide resolved

function isStyleVisible(element) {
if (!(element instanceof HTMLElement) && !(element instanceof SVGElement)) {
if (
!(element instanceof window.HTMLElement) &&
!(element instanceof window.SVGElement)
) {
return false
}

Expand Down
5 changes: 4 additions & 1 deletion 5 packages/test-utils/dist/vue-test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -9019,7 +9019,10 @@ ErrorWrapper.prototype.destroy = function destroy () {
*/

function isStyleVisible(element) {
if (!(element instanceof HTMLElement) && !(element instanceof SVGElement)) {
if (
!(element instanceof window.HTMLElement) &&
!(element instanceof window.SVGElement)
) {
return false
}

Expand Down
5 changes: 4 additions & 1 deletion 5 packages/test-utils/dist/vue-test-utils.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -9018,7 +9018,10 @@
*/

function isStyleVisible(element) {
if (!(element instanceof HTMLElement) && !(element instanceof SVGElement)) {
if (
!(element instanceof window.HTMLElement) &&
!(element instanceof window.SVGElement)
) {
return false
}

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.