3 ms·
>The tweet box is not even a <textarea>, it's a <div> stuffed full of <span> elements. ah yes, because webdevs love reimplementing widgets from scratch. that's
by gruez 6y ago
>The tweet box is not even a <textarea>, it's a <div> stuffed full of <span> elements.
ah yes, because webdevs love reimplementing widgets from scratch. that's no a problem in and of itself, but they also implement it half-assed, so you end up with gems like what OP described, or links being implemented as <a href="#"> with an onclick.
- Haydos585x2 6y agoI think you'd find most front-end developers don't love reimplementing widgets from scratch but instead are required to because designers, product owners and customers expect this sort of experience. I just don't think Twitter would remain competitive if it had the interface of Hacker News.
- theandrewbailey 6y agoTell that to Craigslist.
- itake 6y agoCraigslist has lost a ton of market share to literally every other company. I haven’t used it in years cuz there are just better products.
- maple3142 6y agoOr because their requirement aren't just plain text. Browser's builtin controls isn't really customizable, for example you can't change a color of a specific word in a textarea. Details: https://news.ycombinator.com/item?id=24076601 https://news.ycombinator.com/item?id=24076601
- hakfoo 6y agoI always wondered why we never added any more form control tags. Everything has to be re-engineered as a huge ball of ugly JavaScript. A <richtextarea> that yielded HTML or even RTF seems like it was an obvious need by time of the end of the Netscape/IE browser wars.