Skip to content
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

fix: [#1586] Prevent always wrapping the URL in quotation marks when set in style #1597

Conversation

iradonov
Copy link

No description provided.

Copy link
Owner

@capricorn86 capricorn86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for contributing @iradonov! ⭐

According to spec, quotation marks should always be added.

If you run the following code in the browser, it will behave the same:

var el = document.createElement('div');
el.style = 'background-image: url(test.jpg)'
// Outputs url("test.jpg")
console.log(el.style.backgroundImage)

@iradonov iradonov closed this Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants