W3C architecture group updates its design principles for the web

A dated Group Note collects patterns for designing web platform features, including consistent naming, timing, extension and permissions.

Postbox Journal · Published · Source dated · 3 min read

Desk-laptop-notebook-pen (23958719819)
Illustrative image, resized · www.Pixel.la Free Stock Photos · CC0

The World Wide Web Consortium's Technical Architecture Group published a dated edition of Web Platform Design Principles on November 23. The document gathers lessons the group has developed during reviews of proposed web specifications. It discusses topics such as how to design web interfaces, when behavior should be asynchronous, and how to leave room for future extension. W3C identifies the publication as a Group Note. The label matters in practice because this is design guidance for people proposing technologies, with a different status from a W3C Recommendation.

One theme is predictability for authors who use a web feature. Consistent names help someone infer what an unfamiliar argument or return value represents. If changing an option has different effects depending on which otherwise similar interface a developer uses, that inconsistency creates longer documentation and more edge cases. Naming conventions can also prevent misleading expectations about when a result becomes available. A specification that describes an eventual outcome should make it possible for an author to handle success, delay and failure.

Another part of the problem is how specifications provide space for change. A browser feature can appear in sites that will outlive the team that first implemented it. If later specs need to add a capability, authors benefit from extensions that work with established code and that can be detected without guessing what browser the visitor uses. Opening every detail to extension can make it hard to keep implementations consistent, while fixing everything early can leave few places to evolve. The note describes choices designers can work through before shipping.

Good design principles also help reviewers discuss who experiences a consequence. A policy decision about whether a particular capability can be used might affect the page author, an embedded provider or the user who has granted a permission. A robust proposal explains how those roles interact. A review can ask what existing privacy and permissions concepts already cover a problem, who observes the outcome and whether a change would expose information to people who do not need it. Discussing those questions early is easier than adding incomplete answers after deployment.

The document is especially useful as a record of technical vocabulary. For example, a synchronous path returns without allowing the rest of the operation to proceed independently, while an asynchronous path can communicate an outcome later. A designer choosing between them has to consider how quickly the answer is available, how callers handle it and what waits in the meantime. An interface with both modes also needs reasons for why both are useful. A small choice at the specification level can create performance work in many applications.

Readers inspecting whether a web feature is usable today still need a separate source for implementation and browser support. The principles answer what is worth checking when designing or reviewing a proposal. A specification's publication stage, tests and implementation reports answer questions about availability and interoperability. The group note links to current W3C publications and earlier editions, making it possible to distinguish what it said on November 23 from later revisions to the document.