Skip to content

New principle: When handling extensibility by having clients ignore unknown parameters, consider a "critical" list #560

Open
@jyasskin

Description

@jyasskin

This was brought up in our discussion of w3ctag/design-reviews#1041 and WICG/signature-based-sri#38.

One common way to allow future extensibility of a protocol is to have a list of named parameters, and have clients ignore parameters they don't understand, rather than always erroring. That way, future senders can opt into the new abilities without breaking old recipients. But sometimes a new ability is "critical" for the client to safely handle the message, and it would be better to fail rather than skip that part of the processing. This shows up in PNG and X.509 certificates. It's absent from HTTP headers and HTML.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions