--- titlesanchorlink/script.js~ 2013-03-05 12:27:46.000000000 +0200 +++ titlesanchorlink/script.js 2015-09-28 16:36:26.690647453 +0300 @@ -1,6 +1,10 @@ jQuery(function () { jQuery(':header').each(function(){ var id = jQuery(this).attr('id'); + if (!id) { + // https://github.com/Dric/dokuwiki-titlesanchorlink/issues/1 + return; + } var name = jQuery(this).text(); jQuery(this).append(''); });