TypeScript-DOM-lib-generator icon indicating copy to clipboard operation
TypeScript-DOM-lib-generator copied to clipboard

Fails to handle `[LegacyNullToEmptyString]` for attributes in webidl

Open rbuckton opened this issue 2 years ago • 2 comments

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.

rbuckton avatar Jul 13 '23 14:07 rbuckton

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.

bakkot avatar Jul 13 '23 19:07 bakkot

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.

saschanaz avatar Jul 22 '23 21:07 saschanaz