Stripping Quotes from DIV id's and image atributes?

  •  09-04-2007, 4:06 PM

    Stripping Quotes from DIV id's and image atributes?

    Hi,
    I could use some help here.  I am trying to get my site to validate and to my surprise I have discovered that the WYSIWYG is actually stripping my quotes from div id's and image attributes... For example, Even if I paste in the code to the HTML view.. the minute I load the page in the WYSIWYG mode it automatically strips them out. So a dive tag that looks like this
     
    <div id="myDiv"> will be saved as this: <div id=myDiv>  
     
    and an image that looks like this:
     
    <img height="125" alt="logo" src="someimage.jpg" width="107" /> will be saved as this:
     
    <img height=125 alt="logo" src=someimage.jpg width=107 />
     
    I can prevent it from happening by adding the <!--WYSIWYG_OFF--> tag at the top but is there anything else I can do to prevent it from tweaking my code?  Without the quotes I can't validate with W3C.   Thanks in advance!
    -Sean
     
     
View Complete Thread