[Pro] CSS3 corners action and Blogger

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


http://www.tayway.com/


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I would re-publish with the IE hack switched off. Realize that IE 8 users (a shrinking minority, these days) will see square corners instead of rounded corners – and that’s okay! Getting the page to always look the same is a choice, not a requirement. Better browsers get to have nice things, and lesser browsers still get to see the content, albeit not in as pleasing a visual representation.

Walter

On Sep 5, 2013, at 4:26 AM, Gordon Low wrote:

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.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options