GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    Daniel Hernández (daniel@mstdn.degu.cl)'s status on Thursday, 18-Jan-2024 22:01:56 JSTDaniel HernándezDaniel Hernández
    in reply to
    • Evan Prodromou
    • Julian Lam
    • Steven Pemberton

    @devnull @evan @evanprodromou

    Yes, sanitizing HTML elements will produce interoperability problems.

    I would trust the input if it satisfies a given schema. Otherwise, I would try to fix unclosed elements to match the requirements for the object type content. At the last resource, instead of sanitizing elements, I would delete them and leave only the text. This idea is in the robustness principle: Be conservative in what you do, be liberal in what you accept from others. I also think this principle should be used with caution.

    I feel a little disappointed on how we are facing problems that were resolved a long time ago. When Web content was understood as XML documents, each element had a specific syntax that could be validated. Elements were composable, and we were able to define declarative mappings to, for example, implement the downscale needed by the Mastodon UX to render a WordPress article. In this regard, I agree with most @stevenpemberton's arguments in his "The 100 years web" talk (https://www.youtube.com/watch?v=jl4fnY4BjEY). But, this is probably a story for another thread.

    In conversationThursday, 18-Jan-2024 22:01:56 JST from mstdn.degu.clpermalink

    Attachments

    1. The 100 year web
      from Steven Pemberton
      The keynote at the Balisage Conference on how to create a 100 year web. The slides are here: https://www.cwi.nl/~steven/Talks/2018/07-31-balisage/
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.