summaryrefslogtreecommitdiff
path: root/data/js
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2015-11-01 13:42:56 +0100
committerYorhel <git@yorhel.nl>2015-11-01 13:43:50 +0100
commit8c9cfe238e565088b37d256eb461a01919ef9968 (patch)
tree56143b98815c308aa84dc626a91364db5eadec23 /data/js
parent3c967881d7b5408a49f16de8b268b053d6ba9051 (diff)
Switch to HTML5 doctype + s/acronym/abbr/ + s/&nbsp;/&#xa0;/e
I'd have preferred to stick with XHTML 1.0, but unfortunately browsers won't allow you to use modern Javascript APIs with an older doctype. Note that most pages don't actually validate correctly as HTML5, I'm relying on browsers to be lenient. In either case, I'd like VNDB to stay valid XML (XHTML5, then), and luckily that shouldn't be a problem.
Diffstat (limited to 'data/js')
-rw-r--r--data/js/misc.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/data/js/misc.js b/data/js/misc.js
index 89572e82..a1e86827 100644
--- a/data/js/misc.js
+++ b/data/js/misc.js
@@ -210,7 +210,7 @@ if(byId('batchedit'))
// mouse-over price information / disclaimer
(function(){
if(byId('buynow')) {
- var l = byClass(byId('buynow'), 'acronym', 'pricenote');
+ var l = byClass(byId('buynow'), 'abbr', 'pricenote');
for(var i=0; i<l.length; i++) {
l[i].buynow_last = l[i].title;
l[i].title = null;
@@ -257,12 +257,12 @@ if(byId('not') && byId('vns'))
// Language selector
(function(){
var d = byId('lang_select');
- var flag = byName(d, 'acronym')[0];
+ var flag = byName(d, 'abbr')[0];
ddInit(d, 'bottom', function(lnk) {
var lst = tag('ul', null);
for(var i=0; i<VARS.l10n_lang.length; i++) {
var ln = VARS.l10n_lang[i];
- var icon = tag('acronym', {'class':'icons lang '+ln[0]}, ' ');
+ var icon = tag('abbr', {'class':'icons lang '+ln[0]}, ' ');
lst.appendChild(tag('li', {'class':'lang_selector'}, hasClass(flag, ln[0])
? tag('i', icon, ln[1])
: tag('a', {href:'/setlang?lang='+ln[0]+';ref='+encodeURIComponent(location.pathname+location.search)}, icon, ln[1])