-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Image element src property does not allow URL assignment #43066
Comments
It's more subtle than that. Every DOMString or USVString will convert any input to a string. Technically, everything in JavaScript is convertible to a string, at the very least through Object.prototype.toString(). So hard-coding URL doesn't make sense to me. |
Ah right. Yes I understand that now. Thanks again for the explanation! |
You want separate types for reading and writing properties, which @RyanCavanaugh is iterating on over at #42425. I guess we did discuss a few things in a previous design meeting about how much of |
We'd want to be more permissive to a degree; letting anything in with a |
Tracking at #2521. We can update the lib once that's checked in |
Bug Report
π Search Terms
image src dom
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
π Expected behavior
Compiles cleanly (confirmed supported per whatwg/html#6440)
The text was updated successfully, but these errors were encountered: