11cb0ef41Sopenharmony_ci<!DOCTYPE html> 21cb0ef41Sopenharmony_ci<html> 31cb0ef41Sopenharmony_ci<head> 41cb0ef41Sopenharmony_ci<meta charset="iso-2022-jp"> <!-- test breaks if the server overrides this --> 51cb0ef41Sopenharmony_ci<title>ISO 2022-JP encoding (href)</title> 61cb0ef41Sopenharmony_ci<meta name="timeout" content="long"> 71cb0ef41Sopenharmony_ci<meta name="variant" content="?1-1000"> 81cb0ef41Sopenharmony_ci<meta name="variant" content="?1001-2000"> 91cb0ef41Sopenharmony_ci<meta name="variant" content="?2001-3000"> 101cb0ef41Sopenharmony_ci<meta name="variant" content="?3001-4000"> 111cb0ef41Sopenharmony_ci<meta name="variant" content="?4001-5000"> 121cb0ef41Sopenharmony_ci<meta name="variant" content="?5001-6000"> 131cb0ef41Sopenharmony_ci<meta name="variant" content="?6001-7000"> 141cb0ef41Sopenharmony_ci<meta name="variant" content="?7001-last"> 151cb0ef41Sopenharmony_ci<script src="/resources/testharness.js"></script> 161cb0ef41Sopenharmony_ci<script src="/resources/testharnessreport.js"></script> 171cb0ef41Sopenharmony_ci<script src="/common/subset-tests.js"></script> 181cb0ef41Sopenharmony_ci<script src="jis0208_index.js"></script> 191cb0ef41Sopenharmony_ci<script src="iso2022jp-encoder.js"></script> 201cb0ef41Sopenharmony_ci<link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org"> 211cb0ef41Sopenharmony_ci<link rel="help" href="https://encoding.spec.whatwg.org/#iso-2022-jp"> 221cb0ef41Sopenharmony_ci<meta name="assert" content="The browser produces the expected byte sequences for all characters in the iso-2022-jp encoding after 0x9F when writing characters to an href value, using the encoder steps in the specification."> 231cb0ef41Sopenharmony_ci<script src="../../resources/ranges.js"></script> 241cb0ef41Sopenharmony_ci<script> 251cb0ef41Sopenharmony_civar errors = false; 261cb0ef41Sopenharmony_civar encoder = iso2022jpEncoder; 271cb0ef41Sopenharmony_civar ranges = rangesAll; 281cb0ef41Sopenharmony_cifunction expect(result, codepoint) { 291cb0ef41Sopenharmony_ci return "%" + result.replace(/ /g, "%").replace(/%1B%28%42$/, "");; 301cb0ef41Sopenharmony_ci} 311cb0ef41Sopenharmony_ci</script> 321cb0ef41Sopenharmony_ci<script src="../../resources/encode-href-common.js"></script> 331cb0ef41Sopenharmony_ci</head> 341cb0ef41Sopenharmony_ci<body> 351cb0ef41Sopenharmony_ci<div id="log"></div> 361cb0ef41Sopenharmony_ci</body> 371cb0ef41Sopenharmony_ci</html> 38