Live data from Hacker News

Add dir=“auto” to your inputs and textareas

mough.xyz

101–110 of 114 posts

Re: Add dir=“auto” to your inputs and textareas

#101

Earlier quoted context omitted.

it also wouldn't make sense for Office to have different dictionaries between its Mac and PC (and web) versions. Why? 99.9% of people using Microsoft Office are using it on one computer. I'd wager the majority of those people aren't using only Microsoft Office and nothing else. If Office used the system dictionary, then people's added words would exist in every application they use, and not just every application exc…

> 99.9% of people using Microsoft Office are using it on one computer. That's not even close to true. A lot of people use a company PC to work at the office, and a Mac laptop at home. Or vice-versa. And they make edits on their iPhone. Or Android. Or iPad. Or Surface. Some of these use an installed version, and some of them use a web version. People today absolutely do not stick to one device, or even one operating s…

If the custom words in your spell checker are so essential OS level is still preferable than app level because you only need to add the words to the operating systems you use not every single app you use ever.

These justifications just don't hold up to me and feels like we're starting to make excuses for why electron devs feel the need to waste time and money writing customer spell checking solutions.

Re: Add dir=“auto” to your inputs and textareas

#102
> As someone living in the bubble that is the United States, it can be hard to think externally. But every so often I am reminded there is a world outside of my own.

There is a world outside the US but you don't have to support it, depending on what your site does. I'm not american. I'm not even a native english speaker. And 99% of the sites I go to are perfectly fine if they don't allow neither usernames nor posts containing RTL characters.

If it's not solved at the browser or OS level, I've got about zero obligation to support this.

And, no, this is not about oppressing minorities.

Re: Add dir=“auto” to your inputs and textareas

#103

> As someone living in the bubble that is the United States, it can be hard to think externally. But every so often I am reminded there is a world outside of my own. There is a world outside the US but you don't have to support it, depending on what your site does. I'm not american. I'm not even a native english speaker. And 99% of the sites I go to are perfectly fine if they don't allow neither usernames nor posts c…

[deleted]

Re: Add dir=“auto” to your inputs and textareas

#104

> As someone living in the bubble that is the United States, it can be hard to think externally. But every so often I am reminded there is a world outside of my own. There is a world outside the US but you don't have to support it, depending on what your site does. I'm not american. I'm not even a native english speaker. And 99% of the sites I go to are perfectly fine if they don't allow neither usernames nor posts c…

I remind myself that whenever I'm working on a solo project and think about supporting other languages. A quick google search shows there are 840M English speakers. I'm just one man! Building something that only 1/10 of the world can use still seems pretty good.

If you want to expand your audience to support more of the world, that is totally cool, but as you say, there is no obligation to do so.

Re: Add dir=“auto” to your inputs and textareas

#105

Yeah, as far as I'm concerned, this is a deficiency of language detection. Specific types of input types should auto rtl based on the user agent's locale usage. A number of other automatic behaviors exist simply when you change your primary language, and this is one of them that should change by default. You'll know this by experience if you speak another language and occasionally flip your primary language over. All…

I suppose you’re talking about browser behavior, because I’ve yet to see a website that respects my language headers instead of assuming the language I speak based on geo-IP

The other common situations are explicitly choosing my language in a drop down menu every time I visit it, or some user preferences thing. Often sites come up with a hybrid approach and I get mixed language/locale content.

Re: Add dir=“auto” to your inputs and textareas

#106

> As someone living in the bubble that is the United States, it can be hard to think externally. But every so often I am reminded there is a world outside of my own. There is a world outside the US but you don't have to support it, depending on what your site does. I'm not american. I'm not even a native english speaker. And 99% of the sites I go to are perfectly fine if they don't allow neither usernames nor posts c…

sometimes it’s just fun to add support for a niche use case if it’s simple and not time consuming to maintain

Re: Add dir=“auto” to your inputs and textareas

#107
post #6

Earlier quoted context omitted.

> Why in 2023 is this still an issue? I mean Safari and Firefox only recently (2021) got datetime / datetime-local input support and afaik they still aren’t feature complete (html5). Date pickers have been one of the most popular / important widgets in Javascript for like the last 20 years or so. The only reason edge has it is because it’s backed by chrome (IE / MS was notorious for foot dragging in the space).

Could you confirm datetime is supported by all browsers with no usability quirks?

No. Two problems with your ask is "all browsers" and "no usability quirks", which is never the case. In general compatibility can be found here: https://caniuse.com/?search=datetime-local

Re: Add dir=“auto” to your inputs and textareas

#108
post #87
post #85

> The first results page of Google never lies... I have something to tell you that will help you solve your problem, but you should sit down first, because it's probably going to make you sad...

> I have something to tell you that will help you solve your problem, but you should sit down first, because it's probably going to make you sad... I think you are responding to this sentence read literally: > The first results page of Google never lies, so I thought this was just inherently a problem that required direct intervention, and so was never quite able to prioritize it (so much for my moral high ground). b…

It's true. The original sentence was sarcastic.
Post reply on HN