News for hackers. Stuff that matters.
Re:Write HTML Like It's 1999 by enlyth on Saturday June 08, 2019 @02:33PM (#20134169)
I feel like there's strong friction between HTML trying to semantically describe the structure of a page page and JS frameworks where you try to build custom reusable components which might not fall into the rigid structure defined by classic HTML.
Re:Write HTML Like It's 1999 by cljs-js-eval on Saturday June 08, 2019 @03:09PM (#20134397)
The spec authors would have done better to make the semantic stuff attributes. It's difficult to tell what CSS rules you're going to have to apply to any given semantic tag, which makes people instinctively reach for <div>s and <span>s. React native gets this right, with <Text> and <View> and just a handful of others, with attributes like testID and accessibilityLabel driving automated software that needs to read the screen.
Re:Write HTML Like It's 1999 by rangerpolitic on Saturday June 08, 2019 @04:45PM (#20135053)
That's because people are trying to use HTML for applications rather than documents.