|
1428 | 1428 | }
|
1429 | 1429 | ]
|
1430 | 1430 | },
|
| 1431 | + { |
| 1432 | + "name": "serialized cookie default path", |
| 1433 | + "href": "https://fetch.spec.whatwg.org/#serialized-cookie-default-path", |
| 1434 | + "html": "To obtain a <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-export=\"\" id=\"serialized-cookie-default-path\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">serialized cookie default path</dfn> given a <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-url\" id=\"ref-for-concept-url①⑤\">URL</a>\n<var>url</var>:", |
| 1435 | + "rationale": ".algorithm", |
| 1436 | + "steps": [ |
| 1437 | + { |
| 1438 | + "html": "<p>Let <var>cloneURL</var> be a clone of <var>url</var>.\n\n </p>" |
| 1439 | + }, |
| 1440 | + { |
| 1441 | + "html": "<p>Set <var>cloneURL</var>’s <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-url-path\" id=\"ref-for-concept-url-path②\">path</a> to the <a data-link-type=\"dfn\" href=\"https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-layered-cookies#name-cookie-default-path\" id=\"ref-for-name-cookie-default-path\">cookie default path</a> of\n <var>cloneURL</var>’s <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-url-path\" id=\"ref-for-concept-url-path③\">path</a>.\n\n </p>" |
| 1442 | + }, |
| 1443 | + { |
| 1444 | + "html": "<p>Return the <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#url-path-serializer\" id=\"ref-for-url-path-serializer\">URL path serialization</a> of <var>cloneURL</var>.\n</p>" |
| 1445 | + } |
| 1446 | + ] |
| 1447 | + }, |
1431 | 1448 | {
|
1432 | 1449 | "name": "append a request `Origin` header",
|
1433 | 1450 | "href": "https://fetch.spec.whatwg.org/#append-a-request-origin-header",
|
|
2398 | 2415 | "steps": [
|
2399 | 2416 | {
|
2400 | 2417 | "case": "\"about\"",
|
2401 |
| - "html": "<p>If <var>request</var>’s <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request-current-url\" id=\"ref-for-concept-request-current-url②⑥\">current URL</a>’s <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-url-path\" id=\"ref-for-concept-url-path③\">path</a> is the string\n \"<code>blank</code>\", then return a new <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-response\" id=\"ref-for-concept-response⑤③\">response</a> whose\n <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-response-status-message\" id=\"ref-for-concept-response-status-message③\">status message</a> is `<code>OK</code>`, <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-response-header-list\" id=\"ref-for-concept-response-header-list①⑦\">header list</a> is «\n (`<code>Content-Type</code>`, `<code>text/html;charset=utf-8</code>`) », and\n <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-response-body\" id=\"ref-for-concept-response-body①⑧\">body</a> is the empty byte sequence <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#byte-sequence-as-a-body\" id=\"ref-for-byte-sequence-as-a-body②\">as a body</a>.\n\n </p>" |
| 2418 | + "html": "<p>If <var>request</var>’s <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request-current-url\" id=\"ref-for-concept-request-current-url②⑥\">current URL</a>’s <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-url-path\" id=\"ref-for-concept-url-path⑤\">path</a> is the string\n \"<code>blank</code>\", then return a new <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-response\" id=\"ref-for-concept-response⑤③\">response</a> whose\n <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-response-status-message\" id=\"ref-for-concept-response-status-message③\">status message</a> is `<code>OK</code>`, <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-response-header-list\" id=\"ref-for-concept-response-header-list①⑦\">header list</a> is «\n (`<code>Content-Type</code>`, `<code>text/html;charset=utf-8</code>`) », and\n <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-response-body\" id=\"ref-for-concept-response-body①⑧\">body</a> is the empty byte sequence <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#byte-sequence-as-a-body\" id=\"ref-for-byte-sequence-as-a-body②\">as a body</a>.\n\n </p>" |
2402 | 2419 | },
|
2403 | 2420 | {
|
2404 | 2421 | "case": "\"blob\"",
|
|
2554 | 2571 | },
|
2555 | 2572 | {
|
2556 | 2573 | "case": "\"file\"",
|
2557 |
| - "html": "<p>For now, unfortunate as it is, <code>file:</code> <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-url\" id=\"ref-for-concept-url①⑧\">URLs</a> are left as an exercise\n for the reader.\n\n </p>\n <p>When in doubt, return a <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-network-error\" id=\"ref-for-concept-network-error③②\">network error</a>.\n\n </p>" |
| 2574 | + "html": "<p>For now, unfortunate as it is, <code>file:</code> <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-url\" id=\"ref-for-concept-url①⑨\">URLs</a> are left as an exercise\n for the reader.\n\n </p>\n <p>When in doubt, return a <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-network-error\" id=\"ref-for-concept-network-error③②\">network error</a>.\n\n </p>" |
2558 | 2575 | },
|
2559 | 2576 | {
|
2560 | 2577 | "case": "HTTP(S) scheme",
|
|
2945 | 2962 | ]
|
2946 | 2963 | },
|
2947 | 2964 | {
|
2948 |
| - "html": "If <var>httpRequest</var>’s <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request-referrer\" id=\"ref-for-concept-request-referrer④\">referrer</a> is a <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-url\" id=\"ref-for-concept-url①⑨\">URL</a>, then:", |
| 2965 | + "html": "If <var>httpRequest</var>’s <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request-referrer\" id=\"ref-for-concept-request-referrer④\">referrer</a> is a <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-url\" id=\"ref-for-concept-url②⓪\">URL</a>, then:", |
2949 | 2966 | "rationale": "let",
|
2950 | 2967 | "steps": [
|
2951 | 2968 | {
|
|
4515 | 4532 | "html": "<p>If <var>parsedReferrer</var> is failure, then <a data-link-type=\"dfn\" href=\"https://webidl.spec.whatwg.org/#dfn-throw\" id=\"ref-for-dfn-throw①②\">throw</a> a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#exceptiondef-typeerror\" id=\"ref-for-exceptiondef-typeerror①⑤\">TypeError</a></code>.\n\n </p>"
|
4516 | 4533 | },
|
4517 | 4534 | {
|
4518 |
| - "html": "<p>If one of the following is true\n\n </p>\n <ul class=\"brief\">\n <li>\n <p><var>parsedReferrer</var>’s <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-url-scheme\" id=\"ref-for-concept-url-scheme①⑦\">scheme</a> is \"<code>about</code>\" and\n <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-url-path\" id=\"ref-for-concept-url-path④\">path</a> is the string \"<code>client</code>\"\n\n </p>\n </li><li>\n <p><var>parsedReferrer</var>’s <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-url-origin\" id=\"ref-for-concept-url-origin②⑥\">origin</a> is not <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/browsers.html#same-origin\" id=\"ref-for-same-origin①⑥\">same origin</a> with\n <var>origin</var>\n </p>\n </li></ul>\n <p>then set <var>request</var>’s <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request-referrer\" id=\"ref-for-concept-request-referrer①⑤\">referrer</a> to \"<code>client</code>\".\n\n </p>" |
| 4535 | + "html": "<p>If one of the following is true\n\n </p>\n <ul class=\"brief\">\n <li>\n <p><var>parsedReferrer</var>’s <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-url-scheme\" id=\"ref-for-concept-url-scheme①⑦\">scheme</a> is \"<code>about</code>\" and\n <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-url-path\" id=\"ref-for-concept-url-path⑥\">path</a> is the string \"<code>client</code>\"\n\n </p>\n </li><li>\n <p><var>parsedReferrer</var>’s <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-url-origin\" id=\"ref-for-concept-url-origin②⑥\">origin</a> is not <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/browsers.html#same-origin\" id=\"ref-for-same-origin①⑥\">same origin</a> with\n <var>origin</var>\n </p>\n </li></ul>\n <p>then set <var>request</var>’s <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request-referrer\" id=\"ref-for-concept-request-referrer①⑤\">referrer</a> to \"<code>client</code>\".\n\n </p>" |
4519 | 4536 | },
|
4520 | 4537 | {
|
4521 | 4538 | "html": "<p>Otherwise, set <var>request</var>’s <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request-referrer\" id=\"ref-for-concept-request-referrer①⑥\">referrer</a> to\n <var>parsedReferrer</var>.\n </p>"
|
|
5073 | 5090 | {
|
5074 | 5091 | "name": "data: URL processor",
|
5075 | 5092 | "href": "https://fetch.spec.whatwg.org/#data-url-processor",
|
5076 |
| - "html": "The <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-export=\"\" id=\"data-url-processor\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\"><code>data:</code> URL processor</dfn> takes a <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-url\" id=\"ref-for-concept-url②①\">URL</a>\n<var>dataURL</var> and then runs these steps:", |
| 5093 | + "html": "The <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-export=\"\" id=\"data-url-processor\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\"><code>data:</code> URL processor</dfn> takes a <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-url\" id=\"ref-for-concept-url②②\">URL</a>\n<var>dataURL</var> and then runs these steps:", |
5077 | 5094 | "rationale": ".algorithm",
|
5078 | 5095 | "steps": [
|
5079 | 5096 | {
|
|
0 commit comments