1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00
elinks/test/ecmascript/assert/document.characterSet.html

26 lines
487 B
HTML
Raw Normal View History

2024-04-12 10:53:26 -04:00
<!DOCTYPE html>
<html>
<body>
<p>Click the button to check the encoding of this document.</p>
<button onclick="myFunction()">Try it</button>
<p><strong>Note:</strong> Internet Explorer 8 and earlier does not support the characterSet property.</p>
<p id="demo"></p>
<script>
function myFunction() {
var x = document.characterSet;
console.assert(x === 'utf-8', 'Usually utf-8');
}
console.error('document.characterSet');
myFunction();
console.exit(0);
</script>
</body>
</html>