r/technology 9h ago

Software Trump appoints Airbnb co-founder to revamp public (government) websites

https://www.dw.com/en/trump-appoints-airbnb-co-founder-to-revamp-public-websites-after-musk-doge-exit/a-73744139
1.9k Upvotes

114 comments sorted by

View all comments

149

u/Encomiast 9h ago edited 9h ago

The HTML of https://americabydesign.gov does not exactly inspire confidence that anyone over there actually knows what they are doing:

<span data-word-id="1-word-0" class="text-main-dark" style="transition:color 0.7s ease-in-out;-webkit-transition:color 0.7s ease-in-out;will-change:color">
    What's
</span></span>
<span><span data-word-id="1-word-1" class="text-main-dark" style="transition:color 0.7s ease-in-out;-webkit-transition:color 0.7s ease-in-out;will-change:color">
    the
</span></span>
<span><span data-word-id="1-word-2" class="text-main-dark" style="transition:color 0.7s ease-in-out;-webkit-transition:color 0.7s ease-in-out;will-change:color">
    biggest
</span></span>

23

u/Expensive-Job-9419 9h ago

eli5?

116

u/Encomiast 8h ago

It's…uhm, unusual to wrap every word in markup. It's super inefficient since all this duplicate text needs to be sent to the browser, it's hard to maintain, and it play havoc with screen readers, so it's not super efficient. And it's just ugly.

39

u/Kershiser22 8h ago

I think the old HTML WYSIWYG software was called Frontpage? When I messed with it ~20 years ago, my memory is that it would do stuff like this. If you made any change to your page, it would apply all the formatting to the new section.

7

u/erix84 2h ago

I used to use Frontpage just for drawing tables then I'd use wordpad or another text editor for everything else because i hated how Frontpage did literally everything else.