Is your site secure?
Not a surprise that zero issues were flagged for Newism, but does demonstrate our excellent framework and approach to security.
The HTML <dialog> element is the modern way to build modals and popovers without re-implementing focus management, keyboard handling, and accessibility semantics from scratch. It’s a platform primitive, available across browsers since March 2022.
While researching the API, I found a broken live example on MDN. The show() method demo opened a dialog that couldn’t be closed. A small issue, easily fixed.
That simple fix turned into something much larger.
After submitting an initial patch, I decided to review the example patterns across all the HTMLDialogElement API reference and found a broader issue:
The documentation worked, but it wasn’t as clear or as precise as it could be.
What began as a small correction evolved into a rewrite of 12 documentation pages.
The goal was simple: each page should teach one thing clearly, and every live example should make the browser’s behaviour visible.
To get there, I:
The rewrite wasn’t about adding more. It was about removing noise until the underlying behaviour was obvious.
Contributing to MDN isn’t just about being technically correct. It’s about teaching clearly at scale.
Through review with maintainers, I learned how MDN balances HTML element documentation with DOM API reference pages, when to use inline code versus cross-references, and how to structure live examples that explain behaviour without overwhelming the reader.
Even small conventions matter. MDN prefers ID selectors in JavaScript examples, reserving classes for CSS. Across a documentation surface this large, consistency is part of the user experience.
The review process spanned two months, involved multiple feedback rounds, and generated 70 comments before merging on January 26, 2026.
The <dialog> element looks simple, but it sits at the intersection of interaction design, accessibility, and browser behaviour.
It manages focus, keyboard semantics, and lifecycle state at the platform level. But it only works in your favour if you understand how its events actually behave.
The subtle parts are behavioural:
When behaviour isn’t clearly demonstrated, developers waste time inferring how the API works.
Clear documentation removes that friction, so teams can implement with confidence and get on with the real work.
MDN is one of the web platforms most valuable documentation resources. Improvements here compound across millions of developers building real products.
The real value wasn’t just contributing upstream. It was deepening understanding of the platform itself. You don’t truly understand an API until you can explain it clearly and defend every behavioural edge in review.
View the updated docs here: https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement
Not a surprise that zero issues were flagged for Newism, but does demonstrate our excellent framework and approach to security.
Page load speed and site performance can make or break your SEO strategy and audience engagement.