Skip to content

Instantly share code, notes, and snippets.

@DevL
Created December 9, 2011 23:10
Show Gist options
  • Save DevL/1453745 to your computer and use it in GitHub Desktop.
Save DevL/1453745 to your computer and use it in GitHub Desktop.
list.js international character test
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>list.js international characters test</title>
<script type="text/javascript" src="list.min.js"></script>
</head>
<body>
<div id="encoding_test_list">
<input class="search" type="text" />
<span class="sort" data-sort="character">Sort characters</span>
<span class="sort" data-sort="description">Sort description</span>
<ul class="list">
</li>
<h1 class="character">å</h1>
<p class="description">The antepenultimate character (lowercase) in the Swedish alphabet. (0)</p>
</li>
<li>
<h1 class="character">Å</h1>
<p class="description">The antepenultimate character (uppercase) in the Swedish alphabet. (1)</p>
</li>
<li>
<h1 class="character">Ä</h1>
<p class="description">The penultimate character (uppercase) in the Swedish alphabet. (2)</p>
</li>
<li>
<h1 class="character">Ö</h1>
<p class="description">The last character (uppercase) in the Swedish alphabet. (3)</p>
</li>
<h1 class="character">å</h1>
<p class="description">The antepenultimate character (lowercase) in the Swedish alphabet. (4)</p>
</li>
<li>
<h1 class="character">ä</h1>
<p class="description">The penultimate character (lowercase) in the Swedish alphabet. (5)</p>
</li>
<li>
<h1 class="character">ö</h1>
<p class="description">The last character (lowercase) in the Swedish alphabet. (6)</p>
</li>
</ul>
</div>
<script type="text/javascript" charset="utf-8">
var options = {
valueNames: ['character', 'description']
};
var character_list = new List('encoding_test_list', options);
</script>
</body>
</html>
@DevL
Copy link
Author

DevL commented Dec 9, 2011

Searching/sorting removes all elements.

Removing the first listitem containing an 'å' (description contains '(0)') will yeild a searchable and sortable list BUT only the capital Å, Ä, and Ö will work (1-3). Elements 4-6 will be removed (?) until a full refresh of the page is performed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment