| Summary: | Broken parsing of text that looks like it's starting an HTML tag | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Martin <spleefer90> |
| Component: | Notifications | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | CONFIRMED --- | ||
| Severity: | normal | CC: | kde, kde, nate |
| Priority: | NOR | ||
| Version First Reported In: | 6.4.2 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Martin
2025-07-07 20:06:58 UTC
The spec for notifications is a bit special, it's not full HTML. https://specifications.freedesktop.org/notification-spec/1.3/markup.html It's defined as being valid XML with some additional things. >I would expect single quotes to work, Makes sense. Did this come up in any real application or just testing? I'll test what Gnome does. If they support single quotes, we should too. If they don't, there's no point us doing it as we're just laying a trap for cross-desktop apps. > and I would expect unfinished or nonexistent HTML tags to not be attempted to be rendered as HTML. Unfinished or broken HTML tags is just invalid, defining how we handle something invalid isn't very useful. We should just fix the apps > I'll test what Gnome does. If they support single quotes, we should too. They don't seem to support any of the "HTML" and it just shows up as plaintext, based on what other people shown me. >I would expect single quotes to work, >> Makes sense. Did this come up in any real application or just testing? In my own private application, was wondering why it was eating my text. > Unfinished or broken HTML tags is just invalid, defining how we handle something invalid isn't very useful. We should just fix the apps It would be nice if the text of the notification actually reflected a broken state if that's the intention("unable to parse notification" as a body, or something of the sort), but I can imagine someone wanting to send a <<<URGENT>>> if one simply wanted to send a plaintext notification with less/greater signs in it and not expecting this breakage. Yeah, `notify-send foo "<<<URGENT>>>"` is broken for me too. |