Hi there
I’m using the CSS3 Corners action (version 0.6.3) as part of a redesign of the blogger template at http://www.tayway.com/ and I have ticked the ‘Add IE hack’ option.
However when I paste the resultant page code into Blogger it complains about the following code:
<!--[if lt IE 10]>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/pie/1.0beta5/PIE.js">
</script>
<script type="text/javascript">
if (window.PIE) {
function getElementsByClassName(classname, node) {
if(!node) node = document.getElementsByTagName("body")[0];
var a = [];
var re = new RegExp('s?' + classname + 's?');
var els = node.getElementsByTagName("*");
for (var i = els.length - 1; i >= 0; i--){
if(re.test(els[i].className)) a.push(els[i]);
};
return a;
}
var pied = getElementsByClassName('pie');
for (var i = pied.length - 1; i >= 0; i--){
PIE.attach(pied[i]);
};
}
</script>
<![endif]-->
The error message I receive relates to the line
for (var i = pied.length - 1; i >= 0; i–){:
and it says
Error parsing XML, line 1407, column 47: The string “–” is not permitted within comments.
I’m guessing it may also complain about similar code on the line
for (var i = pied.length - 1; i >= 0; i–){
For the time being I have simply deleted the block of code which I know is not a long-term solution.
How can I edit the above block of code to keep the action functioning properly and Blogger happy?
All the best
Gordon
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options