1 // META: title=Encoding API: replacement encoding
2 // META: script=resources/encodings.js
3 // META: script=resources/decoding-helpers.js
5 const replacement_labels = [];
6 encodings_table.forEach(section => {
8 .filter(encoding => encoding.name === 'replacement')
10 encoding.labels.forEach(label => { replacement_labels.push(label); })
14 replacement_labels.forEach(label => {
17 '%41%42%43%61%62%63%31%32%33%A0',
19 `${label} - non-empty input decodes to one replacement character.`);
24 '', `${label} - empty input decodes to empty output.`);