Conditional Comments for IE 9
jrhessey
Registered Users Posts: 41 Big grins
I was referred to this forum, because the smugmug heroes can't answer my question about their backend coding. I doubt any of you are going to know how their backend works...
Smugmugs new backend screws up code comments. I'm not talking about comments that people leave about your pictures, I'm talking about comments in code that explain to people viewing the code whats going on
ie
gets changed to
This code should not appear in any browser because I have commented it out, the browser should ignore it. Since smugmug changes the symbols, the browsers will display everything plus the html code.
Anyone know any reason why this would be happening? It only does this on code comments, all other html is fine.
Smugmugs new backend screws up code comments. I'm not talking about comments that people leave about your pictures, I'm talking about comments in code that explain to people viewing the code whats going on
ie
<!--blah blah-->
gets changed to
<!-- blah blah -->
This code should not appear in any browser because I have commented it out, the browser should ignore it. Since smugmug changes the symbols, the browsers will display everything plus the html code.
Anyone know any reason why this would be happening? It only does this on code comments, all other html is fine.
0
Comments
I also have the problem with CSS comments /* */.
I put one in and it grays out like it should but when I save and come back to the box they are gone.
Firefox22
My Website index | My Blog
Can you link to a page that shows this? I don't see it when I look through your site.
<!-- blah blah -->
My Website index | My Blog
I agree that they should be the same, however the new backend does something with comments.
Hi Don
[HTML]I can confirm there's a bug here - the code is being converted to <!-- comment here -->
I'll let our engineers know, so they can resolve this.
All the best
Bobby
SmugMug Support Hero [/HTML]
I guess we will wait until it's fixed now...
Thanks for your help guys!!
Yeah. It's ignoring them
The HTML box has some kind of editor built in. When you enter "<!--", it turns dark grey and italic. But when you complete the comment, the editor doesn't seem to recognize as complete the same way it does with "<a" (which it completes for you).