|
828 | 828 | { |
829 | 829 | "name": "relative-URL string", |
830 | 830 | "href": "https://url.spec.whatwg.org/#relative-url-string", |
831 | | - "html": "A <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-export=\"\" id=\"relative-url-string\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">relative-URL string<span id=\"syntax-url-relative\"></span></dfn> must be one of the following,\nswitching on <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-base-url\" id=\"ref-for-concept-base-url⑦\">base URL</a>’s <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-url-scheme\" id=\"ref-for-concept-url-scheme①①\">scheme</a>:", |
| 831 | + "html": "A <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-export=\"\" id=\"relative-url-string\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\"><span class=\"bs-old-id\" id=\"syntax-url-relative\"></span>relative-URL string</dfn> must be one of the following,\nswitching on <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-base-url\" id=\"ref-for-concept-base-url⑦\">base URL</a>’s <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-url-scheme\" id=\"ref-for-concept-url-scheme①①\">scheme</a>:", |
832 | 832 | "rationale": ".switch", |
833 | 833 | "steps": [ |
834 | 834 | { |
|
1241 | 1241 | "html": "<p>If <var>state override</var> is given and <var>url</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\n \"<code>file</code>\", then decrease <var>pointer</var> by 1 and set <var>state</var> to <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#file-host-state\" id=\"ref-for-file-host-state\">file host state</a>. </p>" |
1242 | 1242 | }, |
1243 | 1243 | { |
1244 | | - "html": "Otherwise, if <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#c\" id=\"ref-for-c④②\">c</a> is U+003A (:) and <var>insideBrackets</var> is false, then:", |
| 1244 | + "html": "Otherwise, if <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#c\" id=\"ref-for-c④②\">c</a> is U+003A (:) and <var>insideBrackets</var> is false:", |
1245 | 1245 | "rationale": "if", |
1246 | 1246 | "steps": [ |
1247 | 1247 | { |
1248 | 1248 | "html": "<p>If <var>buffer</var> is the empty string, <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#host-missing\" id=\"ref-for-host-missing①\">host-missing</a> <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#validation-error\" id=\"ref-for-validation-error④②\">validation error</a>,\n return failure. </p>" |
1249 | 1249 | }, |
1250 | 1250 | { |
1251 | | - "html": "<p>If <var>state override</var> is given and <var>state override</var> is <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#hostname-state\" id=\"ref-for-hostname-state\">hostname state</a>, then return. </p>" |
| 1251 | + "html": "<p>If <var>state override</var> is given and <var>state override</var> is <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#hostname-state\" id=\"ref-for-hostname-state\">hostname state</a>, then return failure. </p>" |
1252 | 1252 | }, |
1253 | 1253 | { |
1254 | 1254 | "html": "<p>Let <var>host</var> be the result of <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-host-parser\" id=\"ref-for-concept-host-parser⑧\">host parsing</a> <var>buffer</var> with <var>url</var> <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#is-not-special\" id=\"ref-for-is-not-special①\">is not special</a>. </p>" |
|
1262 | 1262 | ] |
1263 | 1263 | }, |
1264 | 1264 | { |
1265 | | - "html": "then decrease <var>pointer</var> by 1, and then:", |
| 1265 | + "html": "then decrease <var>pointer</var> by 1, and:", |
1266 | 1266 | "rationale": "if", |
1267 | 1267 | "steps": [ |
1268 | 1268 | { |
1269 | 1269 | "html": "<p>If <var>url</var> <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#is-special\" id=\"ref-for-is-special⑨\">is special</a> and <var>buffer</var> is the empty string, <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#host-missing\" id=\"ref-for-host-missing②\">host-missing</a> <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#validation-error\" id=\"ref-for-validation-error④③\">validation error</a>, return failure. </p>" |
1270 | 1270 | }, |
1271 | 1271 | { |
1272 | | - "html": "<p>Otherwise, if <var>state override</var> is given, <var>buffer</var> is the empty\n string, and either <var>url</var> <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#include-credentials\" id=\"ref-for-include-credentials②\">includes credentials</a> or <var>url</var>’s <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-url-port\" id=\"ref-for-concept-url-port⑧\">port</a> is non-null, return. </p>" |
| 1272 | + "html": "<p>Otherwise, if <var>state override</var> is given, <var>buffer</var> is the empty\n string, and either <var>url</var> <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#include-credentials\" id=\"ref-for-include-credentials②\">includes credentials</a> or <var>url</var>’s <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-url-port\" id=\"ref-for-concept-url-port⑧\">port</a> is non-null, then return failure. </p>" |
1273 | 1273 | }, |
1274 | 1274 | { |
1275 | 1275 | "html": "<p>Let <var>host</var> be the result of <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-host-parser\" id=\"ref-for-concept-host-parser⑨\">host parsing</a> <var>buffer</var> with <var>url</var> <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#is-not-special\" id=\"ref-for-is-not-special②\">is not special</a>. </p>" |
|
1311 | 1311 | "html": "<p>If <var>state override</var> is given and <var>url</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\n \"<code>file</code>\", then decrease <var>pointer</var> by 1 and set <var>state</var> to <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#file-host-state\" id=\"ref-for-file-host-state\">file host state</a>. </p>" |
1312 | 1312 | }, |
1313 | 1313 | { |
1314 | | - "html": "Otherwise, if <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#c\" id=\"ref-for-c④②\">c</a> is U+003A (:) and <var>insideBrackets</var> is false, then:", |
| 1314 | + "html": "Otherwise, if <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#c\" id=\"ref-for-c④②\">c</a> is U+003A (:) and <var>insideBrackets</var> is false:", |
1315 | 1315 | "rationale": "if", |
1316 | 1316 | "steps": [ |
1317 | 1317 | { |
1318 | 1318 | "html": "<p>If <var>buffer</var> is the empty string, <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#host-missing\" id=\"ref-for-host-missing①\">host-missing</a> <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#validation-error\" id=\"ref-for-validation-error④②\">validation error</a>,\n return failure. </p>" |
1319 | 1319 | }, |
1320 | 1320 | { |
1321 | | - "html": "<p>If <var>state override</var> is given and <var>state override</var> is <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#hostname-state\" id=\"ref-for-hostname-state\">hostname state</a>, then return. </p>" |
| 1321 | + "html": "<p>If <var>state override</var> is given and <var>state override</var> is <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#hostname-state\" id=\"ref-for-hostname-state\">hostname state</a>, then return failure. </p>" |
1322 | 1322 | }, |
1323 | 1323 | { |
1324 | 1324 | "html": "<p>Let <var>host</var> be the result of <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-host-parser\" id=\"ref-for-concept-host-parser⑧\">host parsing</a> <var>buffer</var> with <var>url</var> <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#is-not-special\" id=\"ref-for-is-not-special①\">is not special</a>. </p>" |
|
1332 | 1332 | ] |
1333 | 1333 | }, |
1334 | 1334 | { |
1335 | | - "html": "then decrease <var>pointer</var> by 1, and then:", |
| 1335 | + "html": "then decrease <var>pointer</var> by 1, and:", |
1336 | 1336 | "rationale": "if", |
1337 | 1337 | "steps": [ |
1338 | 1338 | { |
1339 | 1339 | "html": "<p>If <var>url</var> <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#is-special\" id=\"ref-for-is-special⑨\">is special</a> and <var>buffer</var> is the empty string, <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#host-missing\" id=\"ref-for-host-missing②\">host-missing</a> <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#validation-error\" id=\"ref-for-validation-error④③\">validation error</a>, return failure. </p>" |
1340 | 1340 | }, |
1341 | 1341 | { |
1342 | | - "html": "<p>Otherwise, if <var>state override</var> is given, <var>buffer</var> is the empty\n string, and either <var>url</var> <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#include-credentials\" id=\"ref-for-include-credentials②\">includes credentials</a> or <var>url</var>’s <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-url-port\" id=\"ref-for-concept-url-port⑧\">port</a> is non-null, return. </p>" |
| 1342 | + "html": "<p>Otherwise, if <var>state override</var> is given, <var>buffer</var> is the empty\n string, and either <var>url</var> <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#include-credentials\" id=\"ref-for-include-credentials②\">includes credentials</a> or <var>url</var>’s <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-url-port\" id=\"ref-for-concept-url-port⑧\">port</a> is non-null, then return failure. </p>" |
1343 | 1343 | }, |
1344 | 1344 | { |
1345 | 1345 | "html": "<p>Let <var>host</var> be the result of <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#concept-host-parser\" id=\"ref-for-concept-host-parser⑨\">host parsing</a> <var>buffer</var> with <var>url</var> <a data-link-type=\"dfn\" href=\"https://url.spec.whatwg.org/#is-not-special\" id=\"ref-for-is-not-special②\">is not special</a>. </p>" |
|
2392 | 2392 | { |
2393 | 2393 | "name": "URLSearchParams/initialize", |
2394 | 2394 | "href": "https://url.spec.whatwg.org/#urlsearchparams-initialize", |
2395 | | - "html": "To <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-for=\"URLSearchParams\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"urlsearchparams-initialize\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">initialize<span id=\"concept-urlsearchparams-new\"></span></dfn> a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://url.spec.whatwg.org/#urlsearchparams\" id=\"ref-for-urlsearchparams⑦\">URLSearchParams</a></code> object <var>query</var> with <var>init</var>:", |
| 2395 | + "html": "To <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-for=\"URLSearchParams\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"urlsearchparams-initialize\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\"><span class=\"bs-old-id\" id=\"concept-urlsearchparams-new\"></span>initialize</dfn> a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://url.spec.whatwg.org/#urlsearchparams\" id=\"ref-for-urlsearchparams⑦\">URLSearchParams</a></code> object <var>query</var> with <var>init</var>:", |
2396 | 2396 | "rationale": ".algorithm", |
2397 | 2397 | "steps": [ |
2398 | 2398 | { |
|
0 commit comments