I just posted a new blog post (it's been a while): Semantic markup, browsers, and identity in the DOM dbaron.org/log/20200221-dom-… 1/5
2
11
1
27
Briefly, what I argue in it as that while we talk often about semantic markup, there's another piece that's probably even more important that we think about less, which is persistent object identity in the DOM. 2/5
1
5
In other words, it's important that the browser can recognize that a section of the page, or a heading, or a paragraph, is the same section/heading/paragraph that it was a minute ago, even as the page is dynamically changing. 3/5
1
4
This is important for various ways that browsers adapt pages to devices or to the needs or preferences of users, from screen readers, to scroll anchoring, to ad blocking. 4/5
1
3
And it's worth thinking about given the popularity of frameworks with a programming model where the developer maps application state to a virtual DOM tree, and the framework then rectifies that virtual DOM into a minimal set of modifications to the real DOM. 5/5

Feb 21, 2020 · 8:39 PM UTC

6