PlexPedia Development
Home > Content > Document: Html Compatibilities two
Html Compatibilities two
2 Comments - 12157 Views
More detail.. More problems..... Even a theory on what is wrong!
Submitted By flyclub on 09/04/25
PlexPedia Development, flyclub, Documents 

 
 
The Pre Note
 
Ok, recently (as I have been delving deeper into HTML and JavaScript) I have run into many HTML compatibilities.
 
 
Later on I will give a diagnostic on what I believe may be wrong, and a simple way to fix it, but for now - let me give you the issues.
 
 
 
The Symptoms
 
 
Events
The first thing that comes to mind are events, such as "onclick", "onmousedown", "onmouseout", "onmouseover", etcetera.
 
 
When I try to do say....... An <img> element with an onclick parameter, when  I close the html editor, and open it again, the onclick has disappeared, leaving only the <img>.
 
For Example:
I paste in  
 
<img class="imgx" onclick="ace()" src="http://marsxplr.com/_upl/flyclubozc-orig.jpg" />
 
 Then I close the html editor, and open it again, and bam, what was once
 
 
<img class="imgx" onclick="ace()" src="http://marsxplr.com/_upl/flyclubozc-orig.jpg" />
 
is now
 
 
<img class="imgx" src="http://marsxplr.com/_upl/flyclubozc-orig.jpg" />"
 
 
 
Custom Parameters
This also happens with custom parameters - lets say you want to add a star rater from js - kit:
 
Conventionally you would put in 
 
 
<div class="js-kit-rating" title="Rated item" permalink=""></div><script src="http://js-kit.com/ratings.js"></script>
 
 
However lets say you want to make it score system - something that jsut shows the numbers of yays and nays, not a 1 through 5 average vote.
 
 
You would put in:
 
<div  view="score" class="js-kit-rating" title="Rated item" permalink=""></div><script src="http://js-kit.com/ratings.js"></script>
 
 
However the view="score" would end up disappearing, leaving you with a star rater.
 
 

  1. (by admin on 09/05/14)Re: Html Compatibilities two
    1. (by flyclub on 09/05/27)Re: Html Compatibilities two


    This website is powered by Plexpedia
    Usage of this site constitutes agreement to the » Legal Stuff