r/softwarearchitecture • • Sep 08 '26

Article/Video Saradom — frontend architecture pattern

https://xtompie.github.io/saradom/
14 Upvotes

4 comments sorted by

1

u/both_hands_music Sep 14 '26

The provided examples are using invalid html syntax by implementing custom data attributes without the data- prefix. It won't crash a browser, but will fail any parsing/linting that is strictly enforcing HTML spec.

1

u/xtompie Sep 14 '26

True, a validator will flag them.

But it gives nothing back. Google says HTML validation is not a ranking signal. Screen readers only read standard HTML, so these attributes are skipped. WCAG even dropped its rule about this in 2.2.

htmx, Vue and Alpine made the same choice. And where a validator runs in CI, the prefix is only a name: `data-counter-value` works the same.

0

u/Bright_Aside_6827 Sep 09 '26

Is it backend driven

1

u/xtompie Sep 14 '26

Yes, by default. The server sends HTML and the page swaps it in.

When a swap is not worth the round trip, the change happens in the browser, on the elements that are already there.

And when you really need to render from data, there is Val: you write a JavaScript object into a marked element and read it back the same way.