--- www/ie/iemenu/show-head.html 2002/03/30 13:47:56 1.1.1.1 +++ www/ie/iemenu/show-head.html 2002/04/28 01:21:36 1.1.1.1.2.1 @@ -9,10 +9,7 @@ for (var i = 0; i < head.all.length; i++) { var el = head.all(i); var tn = el.tagName; if (tn == 'LINK') { - var Ahref = el.href; var htext = ''; - Ahref = Ahref.replace(/&/g,'&'); - Ahref = Ahref.replace(//g,'>'); + var Ahref = replace_specials (el.href); var htext = ''; if (el.title) htext = el.title + ' '; if (el.hreflang) htext += '{language=' + el.hreflang + '} '; if (el.media) htext += '{media=' + el.media + '} '; @@ -37,7 +34,8 @@ mname += ' {' + mlang + '}'; } if (mtitle) mtext += ' title="' + replace_specials (mtitle) + '"'; - mtext += '>' + replace_specials (mname); + if (el.scheme) mname += ' {scheme=' + el.scheme + '}'; + mtext += '>' + replace_specials (mname) + ' '; mtext += replace_specials (mvalue) + ''; } else if (tn == 'TITLE') { var mlang = el.lang; @@ -65,6 +63,24 @@ mtext += ''; } } + +// profile attribute of HEAD element +var head = doc.getElementsByTagName('head').item(0); +if (head.outerHTML.indexOf ('profile=')) { + var profileURI = head.outerHTML.replace (/^.+profile="?/, ''); + profileURI = profileURI.replace (head.innerHTML, ''); + profileURI = profileURI.replace (/"?[> ].+$/, ''); + var Ahref = replace_specials (profileURI); + var htext = ''; + if (head.title) htext = head.title + ' '; + htext += '(' + profileURI + ')'; + var lrel = '[profile]'; + itext += '