Re: [whatwg/storage] Add the ability for bottles to have a quota (#97)

@inexorabletash commented on this pull request.



>  
 <p>A <a>storage endpoint</a> has an <dfn for="storage endpoint">identifier</dfn>, which is a
 <a>storage identifier</a>.
 
 <p>A <a>storage endpoint</a> also has <dfn for="storage endpoint">types</dfn>, which is a
 <a for=/>set</a> of <a>storage types</a>.
 
+<p>A <a>storage endpoint</a> also has a <dfn for="storage endpoint">quota</dfn>, which is a number
+representing a recommended <a for=/>storage bottle</a>'s <a for="storage bottle">quota</a>.

"is a number" vs. null later on. Should probably phrase this as optional somehow ("number or null").

>  
 <p>A <a>storage endpoint</a> has an <dfn for="storage endpoint">identifier</dfn>, which is a
 <a>storage identifier</a>.
 
 <p>A <a>storage endpoint</a> also has <dfn for="storage endpoint">types</dfn>, which is a
 <a for=/>set</a> of <a>storage types</a>.
 
+<p>A <a>storage endpoint</a> also has a <dfn for="storage endpoint">quota</dfn>, which is a number
+representing a recommended <a for=/>storage bottle</a>'s <a for="storage bottle">quota</a>.

And appending "in bytes" here might not hurt for readability, even though it's defined in storage bottle/quota.

> @@ -312,7 +322,10 @@ steps:
 <a>storage endpoint</a>. A <a>storage bottle</a> has a <dfn for="storage bottle">map</dfn>, which is
 initially an empty <a for=/>map</a>. A <a>storage bottle</a> also has a
 <dfn for="storage bottle">proxy map reference set</dfn>, which is initially an empty
-<a for=/>set</a>.
+<a for=/>set</a>. A <a>storage bottle</a> also has a <dfn for="storage bottle">quota</dfn>, which is
+null or a number representing a conservative estimate of the amount of bytes available to it. Null

Although maybe add "recommended" or some other wiggle room? The "conservative estimate" is intended to imply that web developers can count on at least this amount, but not necessarily more, the rephrasing loses this...



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/storage/pull/97#discussion_r435400376

Received on Thursday, 4 June 2020 16:53:33 UTC