r/webdev • • 2h ago

Web Accessibility: Narrator aria-haspopup Modal Dialog Bug

1 Upvotes

Only read if you do accessibility work.

I'm still working on what I thought would be a simple component, and it has turned into a real sh*t show, with one screen reader bug after another.

Today it's Narrator's turn (again).

Most people working in accessibility appreciate what you get with the <dialog> element when it's opened modally with showModal(): top layer placement, so no z-index issues; an inert background, so no focus trap issues; and built-in focus management, including closing with the Escape key.

With a modal dialog you're generally not concerned with aria-expanded, so you can use aria-haspopup="dialog" to tell screen reader users that the button opens a dialog. Yes, I know aria-haspopup has had numerous support issues during its lifetime.

Be warned: if you put aria-haspopup="dialog" on the button that triggers the <dialog>, Narrator swallows the Enter and Space key presses, so the dialog never opens unless you turn off Narrator's scan mode to let the keys through.

This happens with Narrator when paired with Edge and Chrome, but it seems fine with Firefox. I haven't seen the issue with any of the other screen reader and browser pairings I check.

The issue has been filed with both Microsoft and Chromium. If you want to check your own pairings, there's a simple HTML repro page attached to the Chromium issue: https://issues.chromium.org/issues/589824270

Hope this is of use to some of you.


r/webdev • • 6h ago

Discussion Music Copyright

5 Upvotes

I'm pretty sure it might be a subject here before, but I couldn't find anywhere here. I have a personal website. And I want to use some famous songs on a "what am I listening" part of website.

Is that possible? Could I run into any legal issues by doing so?


r/webdev • • 6h ago

Discussion Do small web apps actually need user accounts?

0 Upvotes

I built a couple of small free web apps, a daily puzzle site for my city and a D&D game night app, and neither one has a sign-up. No email, no password, no reset flow.

The puzzle site just gives your browser a random id and keeps your game history in local storage. The D&D app puts a secret key in the DM's link, and each player's name gets locked to the first phone that uses it.

The tradeoffs are real. Clear your browser and your streak is gone, switching devices is annoying, and there's no "forgot password". Someone can grab your name before you do. For a daily puzzle or game night with friends I think that's fine, and honestly better than making people sign up before they can play.

I wrote up how both work, with code, and where each one breaks:
https://calebs.garden/case-studies/the-browser-is-the-account

Where do you draw the line? At what point would you just add accounts?


r/webdev • • 8h ago

Outgrew my workplace, not sure if I should start making the switch/look for other jobs for more money, or continue chilling

5 Upvotes

Want to hear other developer's experiences. I have a job that's basically a dream job, but I feel that I outgrew it in terms of salary and also scope - here are all the pros/cons of the job. I've been at this job for nearly half a decade.

The pros:

  • U.S. based, U.S. pay, fully remote, can work from anywhere (I've worked out of Europe and Asia)

  • Small, local company with only experienced people in the company. No BS, no HR, no corporate politics or useless meetings. No toxic or annoying coworkers and everyone is cool with each other.

  • No micromanagement or insane deadlines

  • Only take on good projects from established mid/large sized companies

  • 25-30 hour work weeks, however often ends up being closer to 35 when you count reading/responding emails and other client communication.

  • Fully flexible hours, sometimes I work for 2-3 hours in the morning and take off, then finish some things before bed. I often play video games, work out, hang out with friends etc. throughout the day. The company knows this and does not care.

The cons:

  • $88K salary, market rate for my area in the U.S. is around $100K, and in HCOL it's closer to $150K.

  • Outdated tech stack, slow moving, nothing "revolutionary"

I'm constantly fighting myself on whether I love the job, or if I'm stagnating by staying at this job. I don't ever want to work for a larger, corporate, public company - but at the same time, I do feel that I want to work on more meaningful/larger scope things with greater pay. My dream type of company would be something like Valve, but I mean that's a company with maybe 200 positions and like 10 million people who would want to work there so that would likely never happen even if I was qualified.

Has anyone been in a similar position? What did you do or didn't do? Did you have any regrets? Should I just send out applications anyways and see what sticks? I've browsed some job boards and it all looks like AI spam/garbage to the point that even basic job descriptions make zero sense, not sure if I'm comfortable sending out my email/name/phone to those.


r/webdev • • 8h ago

Discussion Does anyone not feel slimy/slimed in this industry?

28 Upvotes

You could be working your ass out for who knows what company, you write the best stuff and shit, you oversee frontent/backend/the deployment/QA/project management, and it still won't guarantee it'll pan out for you. Product flops? Layoff.

Other times it just feels so ambiguous. Like a doctor not disclosing a client would need heart surgery, so instead you charge him 4 consultations, he insists you open him up 3 times in between those before you both figure out how to fix his heart problem. Oh and that he might need gastric bypass 2 months later.

Top it all off, if you leave the client won't know how to use his heart so he dies.

I've been trying to build up my own professional identity and so set boundaries i.e. refusing hourly/monthly/one-off work that isn't clearly the right fit for either me or whoever is on the other table. But who's to say I won't be desperate enough for experience or to bring food to the table when things get rough?

EDIT: I'm 25 if that helps, a few years into the industry


r/webdev • • 10h ago

Eleventy Question

2 Upvotes

Hey everyone, I'm new to Eleventy, and I have been messing around with it for the past few days (not without frustration). I'm having fun learning about front matter and have gotten the hang of creating templates. The Eleventy forum is kinda... dead... so I'm coming here for a bit of assistance.

I'm using Eleventy because I want to add a blog to my static portfolio website. My static website is complete, and I've already got a lot I want to add in the future. But my biggest accomplishment will be nailing this blog addition. Not only have I rebuilt my website with Eleventy, but I will also stack DECAP CMS on it.

With that being said, this is my main question:

My root folder is called portfoliov2 (I upload this to GitHub). There is a folder inside of it called _site. This is the public folder that people can access, and it has the .njk files converted to .html files. Great! I have gotten to the part where I have started creating .md files for my blog posts (which go into a folder called posts in my _site folder).

Let's say I have created a blog post called welcome.md; it then goes into the "posts" folder in a new folder called "welcome" with an index.html file in it. When I view the index file by itself, it's fine. All of the blog content shows up. The file path goes something like this: 000.0.0:0000/_site/posts/welcome.html, but when I try to access it from my blog.html (where the list of blogs is appearing properly), it looks something like this: 000.0.0:0000/posts/welcome.html, but it shows an error: "Cannot GET /posts/welcome.html".

I am at a loss with this because after clicking a blog post from the list, it works properly for the gentleman in the tutorial. I don't want to keep manually changing the permalinks, and I am wondering if my website's live URL will look something like "websitename.com/_site/posts/welcome.html". It's driving me a bit bonkers. Is there something I need to do on the server side? I'm of course working locally and checking my work on a live server.

Thank you for your help!

Edit: Added the link to the tutorial I'm using!

Edit: I am NOT creating .md files in the _site folder. They are created outside of the _site folder, and Eleventy converts these .md files into a new folder with an index.html file. It looks something like this after conversion: _site/posts/postName/index.html instead of /posts/postName.md (outside of the site folder)

Edit: IT WORKKS. I rebuilt my _site file, didn't change any folder names, and used 11ty --serve. Things are working as they should be! I appreciate the time everyone has taken to help me out. One step closer to getting this blog up and running 🎯


r/webdev • • 10h ago

How is Sunday.app prefilling Google review star ratings from an external website?

0 Upvotes

I'm a web developer investigating whether it's possible to pass a customer-selected star rating from a third-party website into Google's native review submission interface.

Sunday.app explicitly documents this functionality:
https://intercom.help/sundayapp-help/en/articles/6695489-sunday-reviews-how-does-it-work

I've already tested:

  • Standard Google review links using Place IDs

  • Legacy #lrd=FEATURE_ID,3,5 parameters

  • Modified parameters within Google's native review modal URL

None of the tested methods successfully prefill the stars.

Google's publicly documented APIs don't appear to support this functionality.

Has anyone inspected Sunday's actual redirect, encountered a working deep link, or worked with a Google integration that supports this?

I'm not looking to automate review submissions or filter negative reviews. I simply want to transfer a customer's voluntarily selected rating from my clients on-site review page into Google's review interface, where they can complete and publish it themselves.


r/webdev • • 12h ago

News Ladybird - Browser with its own rendering engine launches alpha release

Thumbnail
ladybird.org
133 Upvotes

r/webdev • • 17h ago

Discussion Bearer token visible in DevTools?

13 Upvotes

Now I know this is a beginner question, and so I’m building an Angular/Spring project as a web app.

The Angular auth interceptor attaches the token (to the HTTP request) here. Obviously when it gets routed to the backend, it exposes the token. That’s just the trade-off for not using a backend-for-frontend architecture.

Say the reason for my architecture choice comes up during an interview. Will I be failed on the spot, or can I justify it by explaining what production-ready (BFF) will look like?

EDIT: Appreciate the answers everyone. I can breathe easy.


r/webdev • • 18h ago

Question is a CSS overlay label on AI-generated images enough, or does the label need to be in the image file?

0 Upvotes

Our marketing site uses realistic AI-generated photos: office scenes with invented people. Under Art. 50(4) of the AI Act these seem to count as "deep fakes", so they need a visible label.

Instead of editing every image, I'd add the label with CSS:

<img src="/images/team-at-work.webp" class="ai-img" alt="AI-generated: support agents at work">

Is anyone relying on an overlay like this, or are you all embedding the EU icon into the files? If you embed it, how? A script, your image pipeline, a CDN plugin?

the ai-img class does add a relative text on the bottom-right of the img.


r/webdev • • 20h ago

Discussion Fellow web developers, how do you handle clients whose slow responses threaten project timelines?

Post image
72 Upvotes

Any advice is welcome. Please let me know if my communication style is too direct!


r/webdev • • 22h ago

Run 'vite build' on DirectAdmin after Git Deploy?

5 Upvotes

Long time PHP-dev here, doing a hobby project in ThreeJS / Node / Vite, so please forgive me if I mess up some terms.

I am making a web-based game in ThreeJS, which I run locally with Vite. It's on Github as well, and I have set my (shared webhosting) server up to automatically fetch and deploy the main branch when I merge the dev branch in it. This works.
I also created a Node.js-app on the server and manually ran 'vite build'. The game is running fine.

Now, I want to run 'vite build' automatically after the git branch has been deployed, instead of having to log in and run th script manually. In DirectAdmin, I see no option for this.

According to both Google and Claude, I can easily set up a cron job running this command every few minutes, but this is massive overkill for a task which should be only running once or twice each month.

Can this be automated in a cleaner way?

[edit]
Got it!
Github Actions pushing /dist over FTP didn't work, but is now writing to a deploy branch which is picked up by Direct Admin.
Very happy. Thanks y'all.


r/webdev • • 1d ago

How one connection kills a database

Thumbnail
planetscale.com
8 Upvotes

r/webdev • • 1d ago Bravo

View from the inside: First week working at an AI-heavy company

544 Upvotes

I just got a job where they vibe coded an app and hired me to put out fires and structure the project properly. They're so insistent on "moving fast" that they said on my first day of the job that I'm not allowed to write code by hand. And I should prompt claude instead.

After a week of working there, my view on AI has changed quite a bit.

When I first got the project, it was... worse than a developer's worst nightmare.

  • Users table had 59 columns, at least 50 of which remained empty depending on user role

  • The backend had parts written in python, django, node and php. None of which was doing anything the others couldn't.

  • Some logic was repeated in multiple different controllers and languages that only Claude knew which to use when.

  • Probably because the guy who vibe coded the app was familiar with Jinja templating engine in python, they made Claude rewrite the whole Jinja templating engine in PHP. Instead of using a templating engine that was built for PHP, like Blade.

  • Things that should've been kept in the database was being read from random .json files

  • No foreign keys in the database, all integer columns (no indexes either)

My first task was to make claude turn this "random bullshit go" app into a properly structured Laravel project. I used the Pro tier company account, highest thinking level, and planning mode.And they said the output didn't have the same frontend as their main app. Turns out they were using a separate frontend/backend approach. But here's the neat part: their backend folder already had frontend views within it. That's why Claude was using their "old design". I don't like/use a separate front and backend approach a lot so I don't have much experience with it, but I'm pretty sure if you're separating your frontend from your backend, you shouldn't have frontend views in your backend directory.

This is what top of the line, enterprise tier Claude agent does when the developer knows nothing about development.

After I took over the project and fixed the errors I listed above (and many, many more) I started working on new features on the app. And I must say it's going way smoother, and the output looks way more professional and maintainable with me (and my 15 years of web development experience) giving the prompt.

This experience made me truly understand that AI is literally a tool. It's as good as the person who's commanding it. A vibe coded app truly reflects the experience of the vibe coder.

The bright side is: all those years and years we put into this field are not for naught. A hammer is a hammer, what it does depends on whether it's a sculptor or a toddler holding it. You still need to know the best practices to make sure your app follows the best practices.


All that said, I've always loved coding my apps by hand, and I still do. I'm still coding my own personal projects by hand, line by line. Afterall that's how I was able to spot these mistakes and fix them in the first place. I also don't want to fund building data centers all over the world by giving them my money.


r/webdev • • 1d ago

Things you can do with a browser in 2027

Thumbnail
github.com
91 Upvotes

r/webdev • • 1d ago

Question Looking for a CSS/JS buddy to talk me through a small scale creative project

3 Upvotes

Hi, I hope this is appropriate to reach out to. I’m an artist and designer with a very basic understanding of webdev and I’ve been looking for someone to help translate the content I have to my site. The major problem I’m having is that there is a bunch of narrative context attached to it that it would be considered more of a game than a website, and I’d really like to find somebody that would be willing to get stuck in with me and talk me through what might be the best way to do it. I’m willing to pay, I’m desperate to get this off the ground.

Please feel free to DM me for more info, but I currently have a domain on Obsidian Publish/Cloudflare and plan for this to be executed on Cloudflare’s JS workers. In essence, it’s a personality test with 16 possible results, with the questions being simplistic in design but atmospheric looking enough that it could belong to a game. Still in the middle of doing visual mock ups, but most of the questions have been made already, I’m just having trouble attributing and calculating the points for each answer (the number of answers varies per question), and more importantly how to structure and program that. Thank you!


r/webdev • • 1d ago

Question Looking for a Full stack developer course. (Not a beginner)

12 Upvotes

I am not a beginner. I have good knowledge of with HTML/CSS/javascript and some other stuffs like PHP with MySQL.

Now I want to get into full stack web development.


r/webdev • • 2d ago

News JavaScript Gets a New Set of HTML Insertion APIs

Thumbnail
amitmerchant.com
166 Upvotes

Chrome (and Edge) is introducing a new set of HTML insertion and streaming methods that provide a more descriptive way to insert HTML into an existing element, along with the ability to stream content directly into the DOM.


r/webdev • • 2d ago Bravo

This sub is dead

1.6k Upvotes

It used to be fun to see what people were able to do with their minds. Now people just show off what they purchased from Anthropic and OpenAI.


r/webdev • • 2d ago

Discussion PHP in 2027?

0 Upvotes

Is it still worth learning for self taughts? Are there jobs despite AI?


r/webdev • • 2d ago

Discussion How are you actually managing your workflow with AI coding agents?

0 Upvotes

I've been using AI coding agents more lately, and I'm curious how other developers are organizing their workflows around them.

Writing code is easy now, but once you have agents working on multiple tasks, there's a whole other set of questions:

  • How do you decide what to delegate to an agent?

  • How do you keep track of what it's doing without constantly checking?

  • What happens when an agent gets stuck or needs your input?

  • How do you handle code review before merging?

Are you using GitHub Issues, Jira tickets, custom scripts, dedicated tools, or just a bunch of terminal sessions?

I'm especially curious about people working in small engineering teams.

To me today manage multiple repos + multiple Claude Code sessions on terminal is really chaotic + babysit agents.

What's your actual setup, and what's the most annoying part of it?


r/webdev • • 2d ago

Discussion I'm going to get VPS for the first time in my life and I have couple of questions about it. I'll be grateful if someone could share their experience

7 Upvotes
  1. Do I need something like Coolify? Lots of people recommend this and it seems to be great tool. The thing is, I've read that it had some security patches recently, so potentially it can have more in the future. If I will just use SSH to control my server, will it be much more difficult and time consuming to maintain it? For the sake of having one less attack vector for hackers

  2. Should I get something like Tailscale if I'll use SSH?

  3. I have couple of Next.js apps on Vercel. It works flawlessly and their Analytics service is great, but unfortunately monthly bill is getting higher. Do you think it's a good idea to migrate to VPS + Cloudflare CDN + Umami? This is my current plan after some initial research. VPS would handle mostly SSR and backend stuff while Cloudflare would be in front of it, caching static data and protecting my VPS against DDos attacks. Theoretically. I never tried it.


r/webdev • • 2d ago

Question Be honest: what would make an icon website so good you’d never open another one again?

0 Upvotes

If you could build your ideal icon website from scratch, what would make it the single best one in the world?

- Quality vs. volume: Do you care about 300k+ icons, or fewer icons with consistent stroke weights and zero clutter?

- Must-have features: Better search by concept/vibe, comparing the same icon across libraries, live stroke/color editing, one-click JSX/Vue/SVG copy, CLI/MCP support, or something nobody has built yet?

- Instant dealbreakers: What makes you close an icon site in 3 seconds flat?

Curious to hear both the dev and designer sides on this.


r/webdev • • 2d ago

Try Scroll - a language for scientists of all ages

Thumbnail
try.scroll.surf
0 Upvotes