
When you review a piece of UI code, can you explain why it works?
That question matters whether you wrote the code yourself, inherited it from another developer, or produced it with an AI assistant.
On the web, a control can look convincing while leaving important questions unanswered. What identifies it to assistive technology? How does someone operate it with a keyboard? What happens when its form resets? Where does focus go after an interaction?
Those are questions about behavior and answering them well requires understanding the browser.
Consider a button.
There is a difference between drawing something that looks like a button and choosing the element and behavior that fit the job. Native HTML buttons provide keyboard interaction and semantics but you still need to think about the control’s name, focus visibility, and purpose.
As an example, take an action that should not submit a form. In HTML, you can make that intent explicit by choosing the correct type:
<button type="button">Show details</button>
That small decision is easier to make when you understand the platform. It also gives you a more precise instruction to give an AI assistant, and something specific to verify in its output.
The same approach applies to larger components. Before reviewing the implementation, describe the behavior you expect. Include keyboard interaction, naming, state changes, and any relationship to a form. You might even want to consider leveraging a standardized component spec template.
Now you have something behavior-rich to test.
Foundational knowledge gives you a better basis for working with AI development tools. You can ask for a specific behavior, notice when an implementation takes an unnecessary detour, and investigate the result when it does something unexpected. You do not need to memorize every Web API. You do need enough understanding to recognize which part of the platform is involved and where to check your assumptions.
A useful follow-up to generated code is: “Explain which browser behaviors this implementation relies on, and suggest a way to test each one.” Treat that explanation as something to verify. Try the interactions, consult the documentation, and inspect the code.
This is a practical habit for reviewing any unfamiliar implementation.
Pick a component you are working on. Write down what you expect to happen when someone uses it with a keyboard. Then put the mouse aside and try it.
Can you reach the control? Can you operate it? Is focus visible? Does focus go somewhere sensible afterward?
If the result surprises you, investigate that one behavior. A small, concrete gap in your understanding gives you a useful starting point for learning. You can use the same process with styling or forms: predict, change one thing, observe, and explain.
My Web Component Engineering course explores UI engineering through web standards, using Web Components as its foundation. It includes 13 modules and more than 170 videos, along with an interactive learning app for working through examples.
The course does not teach AI tools or prompting. The benefit is the underlying knowledge you can bring to building and reviewing web interfaces, including work you do with an AI assistant.
From now through January 4, 2027, at 11:59 p.m. Eastern, use WEB250 to save $250: that’s $345 instead of $595.
Explore Web Component Engineering and the curriculum.
The course is self-paced. Take a look at the curriculum and decide whether it fits what you or your team want to learn next.
For more on native button behavior, see MDN’s button reference and HTML accessibility guide.
“It works here.” Three fairly irritating words to hear from your web host when you’re sitting looking at a site you took down on Tuesday.
Here’s how to flush DNS cache entries on the computer in front of you. In Windows, run ipconfig /flushdns in an administrator Command Prompt. On a Mac you’ll want Terminal. The two lines to paste are a little further down. Linux users, check the name of your resolver first.
One favour before you do any of that. Copy the address out of the bar at the top of the offending window. All of it. You’ll want it again in a minute.

On this page
| I’m using | Open | Look for |
|---|---|---|
| Windows 10 or 11 | Command Prompt as administrator | A confirmation message |
| A recent Mac | Terminal | The prompt coming back |
| Linux with systemd-resolved | A terminal | The prompt coming back |
| A phone or tablet | See the restart advice below | Try the address again |
Say you’ve just put a shop on shop.example.com. At a quarter to ten you were a bit quick off the mark and tried the link in the email you’d written announcing the opening. No such name, said your computer. Fair enough, you hadn’t set it up yet.
At ten you add the missing record. At five past, somebody buys a tea towel. Meanwhile you, the proprietor, still can’t get into your own shop.
The bit of DNS caching that tends to come as a surprise here is that “no such name” is an answer. A perfectly good one, at a quarter to ten. And like the answer that gives you the address of a server, it can hang about for a while. People call this negative caching.
You can throw away the answer on your machine. Whether the next answer is any better depends in part on who you ask. More on that in a moment.
Tap the Windows key and start typing Command Prompt. There should be an option alongside the result to run it as administrator. Pick that. If it’s an office PC and you haven’t got the requisite permissions, you’ll need whoever looks after it.
There’s a small window of opportunity here if you’re curious about what went wrong. Before you empty the cache you can have a look in it. Entirely optional, this bit.
ipconfig /displaydns
Quite a lot goes past on some machines. The thing you’re looking for is the name, shop.example.com in our case. Leave off the https at the front and anything from the first slash after the name onwards. Bear in mind, if you’re thinking of posting the result on a help forum, that you’ve also got a list of other names your computer has looked up.
Here’s the line you actually came for.
ipconfig /flushdns
Press Enter. Windows should tell you it successfully flushed the DNS Resolver Cache. The instructions at Rensselaer Polytechnic Institute cover this part too.
Quit the browser, start it up again and paste in that address you kept. Shop open? Lovely. You can close the command window.
Two things you needn’t do. One is to keep emptying the cache until the list stays blank. Your mail program alone could be busy filling it up again. Windows also picks up entries from the hosts file. The other is to release your IP address. Rather a nuisance to lose your connection halfway through a support call and quite unnecessary for this job.
Hold down Command and tap the space bar. Type Terminal into Spotlight and hit Return. For those who prefer rummaging about in Finder, it’s in Utilities inside Applications.
Quit your browser with Command and Q once you’ve saved anything you were working on. Closing the last window on a Mac can leave the application running.
On recent versions of macOS, paste this into Terminal and press Return.
sudo dscacheutil -flushcache
A word about the password box, or rather the curious absence of one. When Terminal asks for your administrator password the cursor can sit there quite still for the entire time you’re typing. No little row of dots. Type it once and press Return.
When you get the prompt back, do the same with this line.
sudo killall -HUP mDNSResponder
That rather alarming sounding second command sends a signal to the Mac’s DNS service. The first one clears directory service cache entries. Mind the capitals if you’re copying by eye.
What did Terminal say? Nothing much is a fairly ordinary outcome here. If you did get an error, hang on to the wording. Also check the version under About This Mac in the Apple menu. For anyone nursing a particularly elderly Mac along, UCSF lists the commands by macOS release. Apple has changed them a few times.
Open the browser again and give the address another go.
Ask two Linux users what they do and you may well get two different, perfectly sensible replies. Here’s a way to find out whether the following one is any use to you.
resolvectl status
Got a report with a section for each of several network links? Have a glance down it. On a laptop you might spot an entry for the office VPN as well as the wireless connection. Worth knowing if the only thing you can’t get at is the staff intranet.
For a machine running systemd-resolved, this empties its cache.
sudo resolvectl flush-caches
And this lets you have a look at the figures afterwards.
resolvectl statistics
Look for the current cache size, where shown. There may be something in there already, much as on Windows. Incidentally, if you’ve come across an option to reset the statistics, that’s for the tally of things like cache hits. You can read about both operations in the resolvectl manual.
“Command not found” on that very first line? Give the other two a miss. Find out what your distribution uses locally. It might be dnsmasq, for instance, or there might be no local caching service to empty. There’s little mileage in installing resolvectl for the occasion.
On an iPhone, iPad or Android device, quit the app you were using, restart the device and try again. There generally isn’t a handy system-wide flush button with a receipt of the sort you get on Windows.
One easy comparison on a phone is to turn Wi-Fi off briefly, assuming you’re happy to use a little mobile data. Does the link work now? Jot that down and put Wi-Fi back on. You’ve changed several things at once, possibly including who answers your DNS queries, so it’s a clue as opposed to a diagnosis.
I’d leave the reset network settings option well alone at this stage. Hunting round the house for the card with the Wi-Fi password on it is a fairly steep price to pay for trying a web address. Likewise there’s no call to wipe the app’s storage.
Back to the tea towels. Suppose this time you’ve moved an existing shop. The old one had a green strip across the top advertising free delivery. You’ve gone over to blue on the new one. On the laptop it’s still green.
Have a look at the far end of the journey first. Where did the browser finish up? You can start off at shop.example.com on two machines and quite easily end up at www.example.com on one of them courtesy of a remembered redirect.
Now think of something you’ve added since the move. A page giving the last posting dates for Christmas, say. Can you get to it on the supposedly out-of-date laptop? If you can, and the dates are right, that green strip starts to look a good deal less convincing as evidence that you’re on the old server.
If the entire shop is wrong, ask the host what DNS answer they’d expect for the precise name you ended up at. Allow for the possibility that they’ll give you several perfectly good addresses. That happens quite a bit with sites that use a content delivery network.
| Where does it go wrong? | A useful comparison |
|---|---|
| In one browser | A second browser on the same machine |
| Everywhere on the home Wi-Fi | The same page over mobile data |
| Only on the staff site | A colleague using the usual office VPN |
| Only on one picture | A fresh copy of that picture |
| On lots of unrelated sites | Another device on the same connection |
One browser being awkward? It’s worth finding out whether it has a secure DNS provider of its own. Leave any office settings as you found them and mention it to support. For trouble across a whole collection of sites, try the checks for a DNS server that isn’t responding.
If you use Edge on Windows, hold Ctrl and press F5 on the shop page. Blue now? You can probably leave well enough alone. Otherwise here’s how to clear cached files in Microsoft Edge. Mind which boxes you tick if you’d like to stay logged in.
The distinction is quite a useful one for anyone who looks after a website. A browser can keep both directions to the shop and a copy of the artwork in the window. You’ve just spent a few minutes making it forget the directions.
There’s a wrinkle at the publishing end too. Ask whoever changed the artwork to sign out and have another look. Some hosts show the editor a fresh page on every visit and serve everybody else a copy they made earlier.
Take an answer with a time to live (TTL) of an hour. Your broadband provider’s resolver picked it up at ten past two. You moved the shop at half past. At quarter to three you emptied the cache on your laptop.
When might that resolver be due to fetch another copy? Ten past three. The clock in this little example belongs to the machine that fetched the answer at ten past two.
Even changing the TTL to five minutes at half past two won’t amend the copy it already has. Hence the slightly odd sounding advice to shorten the lifetime well before moving day.
Still stuck after that interval? Send your host the name, the time you tried it, which connection you were on and where you ended up. Include the error wording if there was any.
No. Your history, saved passwords, cookies and bookmarks are all still there. Any records your provider keeps are unaffected too.
Quite possibly never again. Old entries expire of their own accord.
The Windows and systemd-resolved flush commands here empty the whole resolver cache.
Would deleting your cookies have helped with that first, unopened shop?
No. The computer remembered that the name didn’t exist. You could sign yourself out of every website you use and still have exactly that answer waiting for you.
The post How to Flush DNS Cache on Windows, Mac and Linux appeared first on HTML5 Doctor.

AWS launched Ergo on Tuesday at its annual re:Invent conference. An AI model that AWS is pitching for coding work, Ergo is also an open-weights model, which means anyone can download it and run it on their own hardware. If you’d rather not run it yourself, you can use it through Amazon Bedrock, AWS’s service for running AI models, which charges $1 per million input tokens and $3 per million output tokens.
For day-to-day coding work, AWS measured Ergo against Claude Opus 5.5 ($4 and $20), the model Anthropic recommends for the same work. AWS reports that on AI SWE, its internal coding benchmark, Ergo averages 14.3 minutes and $1.41 per task. On the same benchmark,
Opus 5.5 solves more of the tasks but takes 3.5x longer and costs 10x more.
Sometimes cheaper and less accurate is the better deal, and sometimes it isn’t. It depends on what the cheaper model gets wrong.
Sometimes cheaper and less accurate is the better deal, and sometimes it isn’t. It depends on what the cheaper model gets wrong. A small miss you can fix in a minute isn’t the same as a model that misunderstood the problem. So I tested Ergo and Opus 5.5 on the same coding jobs to see how big the accuracy gap is, what kind of mistakes each one makes, and whether the savings in time and money are real.
I ran each model once per test, with the same instructions and the same tools for reading files, editing files, and running commands. I planned to run Ergo directly on Amazon Bedrock, but my AWS account blocks Bedrock models so I ran through OpenRouter while I wait to hear back from AWS customer service. OpenRouter can send Ergo requests to hosts other than Bedrock, so my times may not match what you’d see on Bedrock itself. Opus 5.5 ran through Anthropic’s API. Both used their default settings. Costs are what each provider billed, including the lower rates for cached input, which made up most of both models’ input tokens.
I checked each test’s difficulty using OpenAI’s GPT-5. Once GPT-5’s scores were considered failing, I knew it was hard enough. Here are the final versions of each test:
Opus 5.5 scored 47 and Ergo scored 42. I expected a gap, since AWS’s own benchmark showed one. The two models were closer to each other than either was to a perfect score. Opus 5.5 finished 5 points ahead of Ergo, but it was still 20 points short of the maximum.
Despite the mediocre scores, the models did a lot right. Neither model misunderstood a single bug. Both earned at least partial credit on all 13, which means each one made a fix that worked for at least some cases.
There were also a lot of misses and they lost points for the same reason. A bug usually shows up in more than one way, and both models tended to fix the way they were shown and stop. Each model fully fixed 3 of the 13 bugs, which means every hidden check for those bugs passed. Both models partly fixed the other 10. In nearly every one, the fix worked for the example in the bug report but failed on other cases of the same bug that the report didn’t mention. Bug by bug, the two were almost even…
But Ergo made one mistake Opus 5.5 didn’t. One of its fixes broke something that was working . That’s the mistake I’d worry about, because it leaves the code worse off than before instead of just leaving a bug half fixed.
The savings were thinner than AWS’s benchmark suggests. Ergo cost about a third less, and it took more than twice as long. It reads and searches far more before it acts, a lot of tokens, burning most of its price advantage.
The numbers:
The pattern held in this test as well. Both scores are mediocre, with the score gap between both models being much closer than they are to a perfect score. Opus 5.5 scored 49 and Ergo scored 44 out of a possible 61.
Both models got every one of the 14 features at least partly working, so again nobody misread the request. The difference was in finishing. Opus 5.5 fully built 8 of the features and Ergo fully built 5. On the rest, each model built a version of the feature that handled some inputs and failed on others. Ergo left more features in that half-done state, 9 to Opus 5.5’s 6.
This is where the deal fell apart on price. Ergo took three and a half times as long as Opus 5.5 and cost more, not less. It read about ten times as many tokens to get a slightly worse result.
The numbers:
This is the test where Ergo was nearly as fast as AWS said and just as cheap. It finished in about 5 minutes and cost 42 cents. Opus 5.5 took about 16 minutes and cost $4.17.
Opus 5.5 did make the program faster than Ergo did, and it scored 480.3 to Ergo’s 434.3. But both versions gave the right output on all six stages, and both were a huge improvement. By my calculation, Ergo’s version ran about 150 times faster than the original. For a job like this, I’d take Ergo’s result and keep the $3.75.
The numbers:
| Amazon Ergo | Claude Opus 5.5 | GPT-5 (difficulty check) | |
| Fix real bugs (67 points) | 42 | 47 | 7 |
| Add features (61 points) | 44 | 49 | 0 |
| Speed (points, no maximum) | 434.3 | 480.3 | 333.9 |
| Total tokens in | 189,432,293 | 32,206,891 | 25,676,645 |
| Total tokens out | 649,049 | 299,005 | 97,856 |
| Total cost | $12.68 | $17.63 | $4.92 |
| Total time | 5,705 s | 2,764 s | 1,523 s |
Ergo is a little less accurate than Opus 5.5, and it makes the same kind of mistakes. It just isn’t reliably cheaper or faster. The big savings only showed up on the smallest job.
These tests are hard. I’ve been testing models for a while now, and it took me some time to learn how to make a test difficult enough without blowing my budget, because this gets expensive fast. I think I’ve finally found a system that works. The mediocre scores from two of the newest models you can buy are the proof.
Yes, Opus 5.5 did slightly better. But slightly better doesn’t count for much when it isn’t any closer to perfect.
That said, none of these results are anything to write home about. Yes, Opus 5.5 did slightly better. But slightly better doesn’t count for much when it isn’t any closer to perfect. Based on these tests, I wouldn’t run either model unsupervised on work this difficult.
As for the deal AWS is offering, Ergo burns through so many tokens that its price advantage mostly disappears. It’s a bargain on a small job. On anything bigger, cheaper per token didn’t reliably mean cheaper.
The post Amazon Ergo vs. Claude Opus 5.5: Similar scores, but far from perfect appeared first on The New Stack.

As of today, I’m no longer part of the Chrome team. Yesterday I handed in my badge and laptop and left Google.
I’ve had an amazing five years as a Googler. When I agreed to interview for a role in Chrome DevRel, I was enticed by the possibility of working on the project that became Baseline. It would be hard to imagine a project so closely linked to the things I’ve cared deeply about since my earliest Web Standards Project days. I was an unlikely fit for big tech, but I believed I could achieve more inside of Chrome than outside. I’m incredibly proud to have been part of the team that managed to ship Baseline, and the fact that the data is now being used in so many ways to help bring clarity to browser support.
Working on CSS was never really part of my job, but I was also able to help get reading-flow shipped into Chrome, along with row wrapping for multicol. Both things I’ve wanted to do for a very long time.
Owning developer content for Chrome, and our two high traffic sites—web.dev and developer.chrome.com—was an amazing opportunity. I was able to use my skills in content operations and strategy, to clarify what these sites were for, and ensure that everything published was high quality and of value to our developer audience.
Of course I didn’t do that alone. While people management had never been something I’d imagined doing, I found myself manager of Chrome’s technical writers. I hit the jackpot as a manager with this group of excellent writers and lovely humans, and the hardest thing about leaving is leaving them.
However, with priorities shifting at Chrome, it no longer felt like the best place for me to do the work I think most important. That’s not to say that Chrome isn’t an amazing place to do web platform work. I hope I’ll be crossing paths professionally with Chromies for many years to come. I have a huge amount of respect for the people there, and have loved getting to work with everyone.
What’s next for me? I’ve always been happiest doing the work, rather than talking about the work, which makes me well suited to freelance life. So I’m going back to working for myself, hopefully finding some interesting contract work. More on that soon, but if you have a need for a freelance technical writer, fractional content operations or strategy lead, or anything else that sounds like the type of work I do or have done in the past, get in touch.
The translate3d() transform function moves an element in a three-dimensional space along the x, y, and z axes.
translate3d() originally handwritten and published with love on CSS-Tricks. You should really get the newsletter as well.