Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encourage user agents to only expose supported properties #80

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions notifications.bs
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,14 @@ removed from the <a>list of notifications</a>.
<p>User agents should display <a>persistent notifications</a> in a platform's
"notification center" (if available).

<p>User agents should only expose properties on the {{Notification}} object when
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to not say "on the Notification object" as they are more likely on the prototype object and maybe elsewhere.

We should probably also mention that dictionary members are likewise not to be supported (this impacts whether valueOf is run, for instance).

the associated feature impacts the user agent's presentation or behavior of
<a lt="concept notification">notifications</a>, for instance when the feature is
supported by the platform's "notification center" or alternative presentation.

<p class=note>Only exposing the supported properties enables authors to employ
feature detection to decide on alternative ways of delivering content when a
particular feature cannot be supported.

<h3 id=permission-model>Permission model</h3>

Expand Down
Loading