Commit 8afd4ae1 authored by Adrian Cochrane's avatar Adrian Cochrane

Describe how notifications should work.

parent 09a749a3
When a link (but not form or form input) has a `prepend`, `append`, or `replace` attribute in addition to a `poll` attribute, that poll attribute should be parsed as a CSS time unit and lead the user agent to subtly confirm the action with the user. Given that permission it should procede to send a request out at the frequency but only after the previous one has closed, with the response handled as per it's other attributes.
When a link (but not form or form input) has a `prepend`, `append`, or `replace` attribute in addition to a `poll` attribute, that poll attribute should be parsed as a CSS time unit and lead the user agent to subtly confirm the action with the user. User agents may wish to allow users to adjust this frequency. Given that permission it should procede to send a request out at the frequency but only after the previous one has closed, with the response handled as per it's other attributes.
If the response has a `Snippet-Poll` HTTP header and the value is a number of milliseconds greater than the frequency confirmed by the user, the polling frequency should be adjusted. If it's 0 then the polling should stop.
\ No newline at end of file
If the response has a `Snippet-Poll` HTTP header and the value is a number of milliseconds greater than the frequency confirmed by the user, the polling frequency should be adjusted. If it's 0 then the polling should stop.
## Notifications
If the link has a `notify` attribute, the user agent should ask the user whether they want to receive notifications in the existing confirmation prompt. Given that permission, the response pages should translate any elements from it's responses with a `notify` attribute into system notifications, according to standard HTML semantics.
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment