TypeScript-DOM-lib-generator
TypeScript-DOM-lib-generator copied to clipboard
Fails to handle `[LegacyNullToEmptyString]` for attributes in webidl
While we seem to support [LegacyNullToEmptyString] when it appears on method parameters, we do not appear to support it for attributes, such as on the value attribute of HtmlInputElement.
Given that this behavior is considered legacy, maybe best to continue not to support it? Seems like it's one of those "well, it works, but the spirit of the API is that it shouldn't" things.
The main blocker was that the setter type had to be same with the getter one, but that limitation has been lifted. I don't see why we should not support it.