3 ms·
because the "unsafe" suffix conveys information to the reader, whereas `innherHTML` does not?
by orf 8mo ago
because the "unsafe" suffix conveys information to the reader, whereas `innherHTML` does not?
- goatlover 8mo agoAny potential reader should be familiar with innerHTML.
- kennywinker 8mo agoRight. Like how any potential reader is familiar with the risks of sql injection which is why nothing has ever been hacked that way. Or how any potential driver is familiar with seat belts which is why everybody wears them and nobody’s been thrown from a car since they were invented.
- deleted 8mo ago[deleted]
- orf 8mo agoyes, and bugs shouldn't exist because everyone should be familiar with everything.
- croes 8mo agoBut if some are marked unsafe and others are not it gives a false sense of security if something is not marked unsafe.
- orf 8mo agoSo we shouldn’t mark anything as unsafe then? And give no indication whatsoever? The issue isn’t that the word “safe” doesn’t appear in safe variants, it’s that “unsafe” makes your intentions clear: “I know this is unsafe, but it’s fine because of X and Y”.