|  | 
| 690 | 690 |           "html": "<p>If <var>expires</var> is given, then <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-append\" id=\"ref-for-list-append④\">append</a> `<code>Expires</code>`/<var>expires</var> (<a data-link-type=\"dfn\" href=\"https://wicg.github.io/cookie-store/#date-serialize\" id=\"ref-for-date-serialize\">date serialized</a>) to <var>attributes</var>.</p>" | 
| 691 | 691 |         }, | 
| 692 | 692 |         { | 
| 693 |  | -          "html": "<p>If <var>path</var> does not start with U+002F (<code>/</code>), then return failure.</p>" | 
| 694 |  | -        }, | 
| 695 |  | -        { | 
| 696 |  | -          "html": "<p>If <var>path</var> does not end with U+002F (<code>/</code>), then append U+002F (<code>/</code>) to <var>path</var>.</p>" | 
| 697 |  | -        }, | 
| 698 |  | -        { | 
| 699 |  | -          "html": "<p>Let <var>encodedPath</var> be the result of <a data-link-type=\"dfn\" href=\"https://encoding.spec.whatwg.org/#utf-8-encode\" id=\"ref-for-utf-8-encode③\">UTF-8 encoding</a> <var>path</var>.</p>" | 
| 700 |  | -        }, | 
| 701 |  | -        { | 
| 702 |  | -          "html": "<p>If the <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#byte-sequence\" id=\"ref-for-byte-sequence⑤\">byte sequence</a> <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#byte-sequence-length\" id=\"ref-for-byte-sequence-length③\">length</a> of <var>encodedPath</var> is greater than the <a data-link-type=\"dfn\" href=\"https://wicg.github.io/cookie-store/#cookie-maximum-attribute-value-size\" id=\"ref-for-cookie-maximum-attribute-value-size①\">maximum attribute value size</a>, then return failure.</p>" | 
|  | 693 | +          "html": "If <var>path</var> is not null:", | 
|  | 694 | +          "rationale": "if", | 
|  | 695 | +          "steps": [ | 
|  | 696 | +            { | 
|  | 697 | +              "html": "<p>If <var>path</var> does not start with U+002F (<code>/</code>), then return failure.</p>" | 
|  | 698 | +            }, | 
|  | 699 | +            { | 
|  | 700 | +              "html": "<p>Let <var>encodedPath</var> be the result of <a data-link-type=\"dfn\" href=\"https://encoding.spec.whatwg.org/#utf-8-encode\" id=\"ref-for-utf-8-encode③\">UTF-8 encoding</a> <var>path</var>.</p>" | 
|  | 701 | +            }, | 
|  | 702 | +            { | 
|  | 703 | +              "html": "<p>If the <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#byte-sequence\" id=\"ref-for-byte-sequence⑤\">byte sequence</a> <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#byte-sequence-length\" id=\"ref-for-byte-sequence-length③\">length</a> of <var>encodedPath</var> is greater than the <a data-link-type=\"dfn\" href=\"https://wicg.github.io/cookie-store/#cookie-maximum-attribute-value-size\" id=\"ref-for-cookie-maximum-attribute-value-size①\">maximum attribute value size</a>, then return failure.</p>" | 
|  | 704 | +            }, | 
|  | 705 | +            { | 
|  | 706 | +              "html": "<p><a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-append\" id=\"ref-for-list-append⑤\">Append</a> `<code>Path</code>`/<var>encodedPath</var> to <var>attributes</var>.</p>" | 
|  | 707 | +            } | 
|  | 708 | +          ] | 
| 703 | 709 |         }, | 
| 704 | 710 |         { | 
| 705 |  | -          "html": "<p><a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-append\" id=\"ref-for-list-append⑤\">Append</a> `<code>Path</code>`/<var>encodedPath</var> to <var>attributes</var>.</p>" | 
|  | 711 | +          "html": "<p>Otherwise, <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-append\" id=\"ref-for-list-append⑥\">append</a> `<code>Path</code>`/ U+002F (<code>/</code>) to <var>attributes</var>.</p>" | 
| 706 | 712 |         }, | 
| 707 | 713 |         { | 
| 708 |  | -          "html": "<p><a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-append\" id=\"ref-for-list-append⑥\">Append</a> `<code>Secure</code>`/`` to <var>attributes</var>.</p>" | 
|  | 714 | +          "html": "<p><a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-append\" id=\"ref-for-list-append⑦\">Append</a> `<code>Secure</code>`/`` to <var>attributes</var>.</p>" | 
| 709 | 715 |         }, | 
| 710 | 716 |         { | 
| 711 | 717 |           "html": "Switch on <var>sameSite</var>:", | 
|  | 
| 716 | 722 |               "steps": [ | 
| 717 | 723 |                 { | 
| 718 | 724 |                   "case": "\"none\"", | 
| 719 |  | -                  "html": "<p><a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-append\" id=\"ref-for-list-append⑦\">Append</a> `<code>SameSite</code>`/`<code>None</code>` to <var>attributes</var>.</p>" | 
|  | 725 | +                  "html": "<p><a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-append\" id=\"ref-for-list-append⑧\">Append</a> `<code>SameSite</code>`/`<code>None</code>` to <var>attributes</var>.</p>" | 
| 720 | 726 |                 }, | 
| 721 | 727 |                 { | 
| 722 | 728 |                   "case": "\"strict\"", | 
| 723 |  | -                  "html": "<p><a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-append\" id=\"ref-for-list-append⑧\">Append</a> `<code>SameSite</code>`/`<code>Strict</code>` to <var>attributes</var>.</p>" | 
|  | 729 | +                  "html": "<p><a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-append\" id=\"ref-for-list-append⑨\">Append</a> `<code>SameSite</code>`/`<code>Strict</code>` to <var>attributes</var>.</p>" | 
| 724 | 730 |                 }, | 
| 725 | 731 |                 { | 
| 726 | 732 |                   "case": "\"lax\"", | 
| 727 |  | -                  "html": "<p><a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-append\" id=\"ref-for-list-append⑨\">Append</a> `<code>SameSite</code>`/`<code>Lax</code>` to <var>attributes</var>.</p>" | 
|  | 733 | +                  "html": "<p><a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-append\" id=\"ref-for-list-append①⓪\">Append</a> `<code>SameSite</code>`/`<code>Lax</code>` to <var>attributes</var>.</p>" | 
| 728 | 734 |                 } | 
| 729 | 735 |               ] | 
| 730 | 736 |             } | 
| 731 | 737 |           ] | 
| 732 | 738 |         }, | 
| 733 | 739 |         { | 
| 734 |  | -          "html": "<p>If <var>partitioned</var> is true, <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-append\" id=\"ref-for-list-append①⓪\">Append</a> `<code>Partitioned</code>`/`` to <var>attributes</var>.</p>" | 
|  | 740 | +          "html": "<p>If <var>partitioned</var> is true, <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-append\" id=\"ref-for-list-append①①\">Append</a> `<code>Partitioned</code>`/`` to <var>attributes</var>.</p>" | 
| 735 | 741 |         }, | 
| 736 | 742 |         { | 
| 737 | 743 |           "html": "<p>Perform the steps defined in <a href=\"https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-14#name-storage-model\">Cookies § Storage Model</a> for when the user agent \"receives a cookie\" with <var>url</var> as <var>request-uri</var>, <var>encodedName</var> as <var>cookie-name</var>, <var>encodedValue</var> as <var>cookie-value</var>, and <var>attributes</var> as <var>cookie-attribute-list</var>.</p>\n      <p>For the purposes of the steps, the newly-created cookie was received from a \"non-HTTP\" API.</p>" | 
|  | 
| 747 | 753 |       "html": "To <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"delete-a-cookie\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">delete a cookie</dfn> with <var>url</var>, <var>name</var>, <var>domain</var>, <var>path</var>, and <var>partitioned</var> run the following steps:", | 
| 748 | 754 |       "rationale": ".algorithm", | 
| 749 | 755 |       "steps": [ | 
| 750 |  | -        { | 
| 751 |  | -          "html": "If <var>path</var> is not null, then run these steps:", | 
| 752 |  | -          "rationale": "if", | 
| 753 |  | -          "steps": [ | 
| 754 |  | -            { | 
| 755 |  | -              "html": "<p>If <var>path</var> does not start with U+002F (<code>/</code>), then return failure.</p>" | 
| 756 |  | -            }, | 
| 757 |  | -            { | 
| 758 |  | -              "html": "<p>If <var>path</var> does not end with U+002F (<code>/</code>), then append U+002F (<code>/</code>) to <var>path</var>.</p>" | 
| 759 |  | -            } | 
| 760 |  | -          ] | 
| 761 |  | -        }, | 
| 762 | 756 |         { | 
| 763 | 757 |           "html": "<p>Let <var>expires</var> be the earliest representable date represented <a data-link-type=\"dfn\" href=\"https://wicg.github.io/cookie-store/#as-a-timestamp\" id=\"ref-for-as-a-timestamp①\">as a timestamp</a>.</p>" | 
| 764 | 758 |         }, | 
|  | 
| 890 | 884 |               "html": "<p>Let <var>item</var> be the result of running <a data-link-type=\"dfn\" href=\"https://wicg.github.io/cookie-store/#create-a-cookielistitem\" id=\"ref-for-create-a-cookielistitem①\">create a CookieListItem</a> from <var>change</var>’s cookie.</p>" | 
| 891 | 885 |             }, | 
| 892 | 886 |             { | 
| 893 |  | -              "html": "<p>If <var>change</var>’s type is <em>changed</em>, then <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-append\" id=\"ref-for-list-append①①\">append</a> <var>item</var> to <var>changedList</var>.</p>" | 
|  | 887 | +              "html": "<p>If <var>change</var>’s type is <em>changed</em>, then <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-append\" id=\"ref-for-list-append①②\">append</a> <var>item</var> to <var>changedList</var>.</p>" | 
| 894 | 888 |             }, | 
| 895 | 889 |             { | 
| 896 | 890 |               "html": "Otherwise, run these steps:", | 
|  | 
| 900 | 894 |                   "html": "<p>Set <var>item</var>[\"<code class=\"idl\"><a data-link-type=\"idl\" href=\"https://wicg.github.io/cookie-store/#dom-cookielistitem-value\" id=\"ref-for-dom-cookielistitem-value\">value</a></code>\"] to undefined.</p>" | 
| 901 | 895 |                 }, | 
| 902 | 896 |                 { | 
| 903 |  | -                  "html": "<p><a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-append\" id=\"ref-for-list-append①②\">Append</a> <var>item</var> to <var>deletedList</var>.</p>" | 
|  | 897 | +                  "html": "<p><a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-append\" id=\"ref-for-list-append①③\">Append</a> <var>item</var> to <var>deletedList</var>.</p>" | 
| 904 | 898 |                 } | 
| 905 | 899 |               ] | 
| 906 | 900 |             } | 
|  | 
0 commit comments