Skip to content

[🐞] v2: dangerouslySetInnerHtml doesn't check if undefined/null #7773

@wmertens

Description

@wmertens

Which component is affected?

Qwik Runtime

Describe the bug

when passing the dangerouslySetInnerHtml prop, and it is nullish, v1 will just make an empty body. V2 puts null

Reproduction

https://qwikdev-build-v2.qwik-8nx.pages.dev/playground/#f=Q040xgSaIhQmGmD7AViD5qWnArNfcU5lcGqJZx6wzPAI8fWxrQaW3alpwCIkpVYfb2oytERyJCmpCaUdNZqWaJGWAA

Steps to reproduce

compare with v1: https://qwik.dev/playground/#f=Q040xpY0TTTA9gOwBs1LTwVmv%2BKcyuDUEs88YJnhEeLrY1sNLLtT04BFSEqt%2FmhqGrKpCQA

System Info

n/a

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions