|
645 | 645 | "html": "<p>If <var>name</var> or <var>value</var> contain U+003B (;), any <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#c0-control\" id=\"ref-for-c0-control\">C0 control</a> character except U+0009 TAB, or U+007F DELETE, then return failure.</p>"
|
646 | 646 | },
|
647 | 647 | {
|
648 |
| - "html": "<p>If <var>name</var>’s <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#string-length\" id=\"ref-for-string-length\">length</a> is 0 and <var>value</var> contains U+003D (=), then return failure.</p>" |
649 |
| - }, |
650 |
| - { |
651 |
| - "html": "<p>If <var>name</var>’s <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#string-length\" id=\"ref-for-string-length①\">length</a> is 0 and <var>value</var>’s <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#string-length\" id=\"ref-for-string-length②\">length</a> is 0, then return failure.</p>" |
| 648 | + "html": "If <var>name</var>’s <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#string-length\" id=\"ref-for-string-length\">length</a> is 0:", |
| 649 | + "rationale": "if", |
| 650 | + "steps": [ |
| 651 | + { |
| 652 | + "html": "<p>If <var>value</var> contains U+003D (=), then return failure.</p>" |
| 653 | + }, |
| 654 | + { |
| 655 | + "html": "<p>If <var>value</var>’s <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#string-length\" id=\"ref-for-string-length①\">length</a> is 0, then return failure.</p>" |
| 656 | + }, |
| 657 | + { |
| 658 | + "html": "<p>If <var>value</var>, <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#byte-lowercase\" id=\"ref-for-byte-lowercase\">byte-lowercased</a>, <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#byte-sequence-starts-with\" id=\"ref-for-byte-sequence-starts-with\">starts with</a> `<code>__host-</code>` or `<code>__secure-</code>`, then return failure.</p>" |
| 659 | + } |
| 660 | + ] |
652 | 661 | },
|
653 | 662 | {
|
654 | 663 | "html": "<p>Let <var>encodedName</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>name</var>.</p>"
|
|
672 | 681 | {
|
673 | 682 | "html": "<p>If <var>domain</var> starts with U+002E (.), then return failure.</p>"
|
674 | 683 | },
|
| 684 | + { |
| 685 | + "html": "<p>If <var>name</var>, <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#byte-lowercase\" id=\"ref-for-byte-lowercase①\">byte-lowercased</a>, <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#byte-sequence-starts-with\" id=\"ref-for-byte-sequence-starts-with①\">starts with</a> `<code>__host-</code>`, then return failure.</p>" |
| 686 | + }, |
675 | 687 | {
|
676 | 688 | "html": "<p>If <var>host</var> does not equal <var>domain</var> and <var>host</var> does not end with U+002E (.) followed by <var>domain</var>,\nthen return failure.</p>"
|
677 | 689 | },
|
|
696 | 708 | {
|
697 | 709 | "html": "<p>If <var>path</var> does not start with U+002F (/), then return failure.</p>"
|
698 | 710 | },
|
| 711 | + { |
| 712 | + "html": "<p>If <var>path</var> is not U+002F (/), and <var>name</var>, <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#byte-lowercase\" id=\"ref-for-byte-lowercase②\">byte-lowercased</a>, <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#byte-sequence-starts-with\" id=\"ref-for-byte-sequence-starts-with②\">starts with</a> `<code>__host-</code>`, then return failure.</p>" |
| 713 | + }, |
699 | 714 | {
|
700 | 715 | "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 | 716 | },
|
|
0 commit comments