- From: Domenic Denicola <notifications@github.com>
- Date: Fri, 01 Oct 2021 09:15:09 -0700
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 1 October 2021 16:15:22 UTC
In particular, it's actually pretty rare to use a JS API to represent user-visible text in web platform APIs. Usually we instead present users with content through HTML that is displayed in the content area. The only time you'd need a JS API to present user-visible text, would be when that user-visible text is presented outside the content area. This is generally frowned upon for security reasons, with notifications and web app manifest being the only notable exception I'm aware of. (Smaller exceptions I can think of include `title=""`, `alt=""`, and `<title>`, but those use HTML-based APIs instead of JS APIs.) So indeed I'd encourage us to find examples here before doing any work to encourage more APIs of this sort. Especially since for the two main notable examples so far, the Notifications API and web app manifest, the proposed solution is not suitable. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/heycam/webidl/issues/1025#issuecomment-932366524
Received on Friday, 1 October 2021 16:15:22 UTC