[opencms-dev] HTML Parsing Bug
Nicholas DeSteffen
ndesteffen at tlcontact.com
Wed Dec 12 15:29:31 CET 2007
Ok, I figured out what my problem was, I had the content-conversion property set to true for the entire site. Many moons ago I had some content that wasn't rendering correct in IE and this fixed it. I would like to thank Microsoft yet again for wasting at least 10 developer hours trying to figure out what the problem was.
Nick
_____
From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Nicholas DeSteffen
Sent: Monday, December 10, 2007 9:19 AM
To: The OpenCms mailing list
Subject: [opencms-dev] FW: HTML Parsing Bug
Ooops, looks like I forgot to supply version info:
OpenCms 7.0.3
MySQL 5.0.45
Tomcat 5.5.23
Thanks,
Nick
_____
From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Nicholas DeSteffen
Sent: Thursday, December 06, 2007 9:46 AM
To: The OpenCms mailing list
Subject: [opencms-dev] HTML Parsing Bug
Ok,
I'm wondering if somebody would be so kind to test that this is a bug or not, I have the following block of HTML that I am copying out of our current site putting into a page in OpenCms. FCKEditor seems to work fine with this, however as soon as it is saved to the database the HTML is changed and doesn't render properly. Below is the HTML before the save and after the save. I have also tried going through WebDAV through the following steps and still get the same results:
1.) Save the XML file to my local desktop
2.) Update the appropriate section
3.) Copy the XML back to the VFS
4.) View page
So it seems that OpenCms is parsing out and changing the code, I think this could be a serious bug as the HTML I'm putting in is valid.
Original copy:
<p>“Even from the get-go, when the shock wore off, I refused to believe that I was not going to live,” Lisa says confidently. “I was not in denial. I was informed but I knew. Not yet, not now.”</p>
Rendered as:
"Even from the get-go, when the shock wore off, I refused to believe that I was not going to live," Lisa says confidently. "I was not in denial. I was informed but I knew. Not yet, not now."
Copy after save and exit:
<p>“Even from the get-go, when the shock wore off, I refused to believe that I was not going to live,” Lisa says confidently. “I was not in denial. I was informed but I knew. Not yet, not now.”& lt; /p></p>
Rendered as:
"Even from the get-go, when the shock wore off, I refused to believe that I was not going to live," Lisa says confidently. "I was not in denial. I was informed but I knew. Not yet, not now."& lt; /p>
Nick DeSteffen
Web Developer - CarePages Inc.
http://www.carepages.com
ndesteffen at tlcontact.com
----
Harness the compassion to help when someone needs
you. We're excited to announce 'We Carry Each
Other,' a collection of inspiring stories and
practical tips on how to cope and care from Eric
and Sharon Langshur, the founders of CarePages.
Look at your local major bookseller or visit
http://www.carepages.com/we_carry.jsp
----
Harness the compassion to help when someone needs
you. We're excited to announce 'We Carry Each
Other,' a collection of inspiring stories and
practical tips on how to cope and care from Eric
and Sharon Langshur, the founders of CarePages.
Look at your local major bookseller or visit
http://www.carepages.com/we_carry.jsp
----
Harness the compassion to help when someone needs
you. We're excited to announce 'We Carry Each
Other,' a collection of inspiring stories and
practical tips on how to cope and care from Eric
and Sharon Langshur, the founders of CarePages.
Look at your local major bookseller or visit
http://www.carepages.com/we_carry.jsp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20071212/d7a6d236/attachment.htm>
More information about the opencms-dev
mailing list