MySpace

O'Reilly diyINcite - MySpace Blog Insight into do-it-yourself MySpace web scripting, digital imaging, and more

OReilly DIYincite



Last Updated: 5/21/2007

Send Message
Instant Message
Email to a Friend
Subscribe

Who Gives Kudos:


Sunday, January 28, 2007 

Category: Web, HTML, Tech
My friend Chris notified me that MySpace has made a new change to their profile editor that breaks HTML comments! So, if you've customized your profile and you'd like to document internally, within your code, what code sections do what, your comments end up displayed on your profile page, rather than being visible only when you edit your profile.

Here's what the current MySpace profile editor does to comments. Say you're editing your profile, and you'd like to make a note to yourself using the following standard format HTML comment:

<!-- the code below creates a scrolling window -->

This is a valid HTML comment.

Here's what the MySpace editor enters into your profile when you click the "Save All Changes" button:

.. the code below creates a scrolling window -->

This, of course, is not an HTML comment, so it will be displayed in your profile when people visit your page.

Undoubtedly MySpace made this change to fight some kind of hacker attack. Unfortunately, when they do these things they often do so without thinking about the implications for members who are trying to apply standard coding techniques to their profile customizations.

References

LeSabre

 
Yes, this has been an incredible pain in the you know what, lol!!  A work around is to create your comments in tag form.

If you want a CSS comment just simply put in your stylesheet:: .MyNote {My Descriptive Comment} OR in your HTML:: <My Descriptive Comment Here>

The browser will just ignore this since there is no real tags associated with them, and MySpace will not filter it out :) 
 
Posted by LeSabre on Sunday, January 28, 2007 - 8:29 PM
[Reply to this
OReilly DIYincite

 
Thanks LeSabre! I'll make sure Chris sees this.
 
Posted by OReilly DIYincite on Sunday, January 28, 2007 - 8:37 PM
[Reply to this
Chris

 

Hey guys!  I've seen it.  Thank you LaSabre for your solution.  It seems that I learn learn more when MySpace decides to 'break' things for me :).  Have a great week.

Chris


 
Posted by Chris on Monday, January 29, 2007 - 8:33 AM
[Reply to this
LeSabre

 
Very welcome guys :) It's just something I picked up from some of the other greats on MySpace ;)
 
Posted by LeSabre on Monday, January 29, 2007 - 6:30 PM
[Reply to this
synthemesc

 
Yes, this limitation blows. I wouldn't mind being able to use the comment directives that can be used to steer IE around workaround code...
 
Posted by synthemesc on Wednesday, April 04, 2007 - 6:58 AM
[Reply to this