-
Notifications
You must be signed in to change notification settings - Fork 13k
Open
Labels
Experience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsSuggestionAn idea for TypeScriptAn idea for TypeScript
Description
Bug Report
π Search Terms
image src dom
π Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about 4.3.0
β― Playground Link
Playground link with relevant code
π» Code
let image = document.createElement('img');
image.src = new URL("http://google.com");
console.log(image.src)
π Actual behavior
Type 'URL' is not assignable to type 'string'.(2322)
π Expected behavior
Compiles cleanly (confirmed supported per whatwg/html#6440)
AscendingEagle
Metadata
Metadata
Assignees
Labels
Experience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsSuggestionAn idea for TypeScriptAn idea for TypeScript