Something is wrong with the tidy settings of the CMS

Hi all


Got another teething issue after the upgrade from 3.12 to 3.20.6.



Something is wrong with the tidy settings of the current version or could this be a bug in the curent verison of 3.20.6

****************************************************************************************************************

For XHTML, image tags should be written with a slash before the closing tag eg <img src="…" />, but when these slashes are entered and saved in a document (using the wysiwyg) the CMS is removing the slash. This is HTML4 encoding and causes validation errors in our templates.



The same is occurring with breaks which should be <br />, but the CMS is changing to <br>. There would be other less common tags that are similarly affected, but these are just more symptoms of the same problem.



Futhermore, when using a wysiwyg area in the admin interface, the html tidy icon displays a tooltip message that 'HTML Tidy failed to clean this content', but offers no explanation as to why it failed.

****************************************************************************************************



Can someone out there give me instruction to fix this issue if there is a fix within the 3.20.6



Cheers :rolleyes:

[quote]
For XHTML, image tags should be written with a slash before the closing tag eg <img src="…" />, but when these slashes are entered and saved in a document (using the wysiwyg) the CMS is removing the slash. This is HTML4 encoding and causes validation errors in our templates.



The same is occurring with breaks which should be <br />, but the CMS is changing to <br>. There would be other less common tags that are similarly affected, but these are just more symptoms of the same problem.

[/quote]



Did you make sure to check the code on the front end after submitting it, rather than in the WYSIWYG editor? The editor will always show non-xhtml code. It will run through tidy and be saved in the DB as cleaned. xhtml.

[quote]
Did you make sure to check the code on the front end after submitting it, rather than in the WYSIWYG editor? The editor will always show non-xhtml code. It will run through tidy and be saved in the DB as cleaned. xhtml.

[/quote]



Yes, sadly, the problem is displaying on the saved page - front end.



(I'm from the same place as ^Yogi^)

what version of tidy are you running?


tidy -v

HTML Tidy for Linux released on 25 March 2009

[quote]
what version of tidy are you running?



tidy -v

HTML Tidy for Linux released on 25 March 2009

[/quote]



HTML Tidy for Solaris released on 1 Septemember 2005

For 3.20.x and later, you need a newer HTMLTidy: release date 6 Nov 2007


Might want to check on the requirements here as you have upgraded many major versions and moved from PHP4 to PHP5: http://matrix.squiz.net/resources/requirements

[quote]
For 3.20.x and later, you need a newer HTMLTidy: release date 6 Nov 2007



Might want to check on the requirements here as you have upgraded many major versions and moved from PHP4 to PHP5: http://matrix.squiz.net/resources/requirements

[/quote]



Hi greg



But we run Solaris platform not Linux, based on the link you gave us it say HTML Tidy for Linux… :unsure:

[quote]
Hi greg



But we run Solaris platform not Linux, based on the link you gave us it say HTML Tidy for Linux… :unsure:

[/quote]



If you run Solaris, use a version compiled for Solaris. The date (what HTMLTidy uses for its version number) is the important bit. New versions contain new features that we need for Matrix now.

[quote]
If you run Solaris, use a version compiled for Solaris. The date (what HTMLTidy uses for its version number) is the important bit. New versions contain new features that we need for Matrix now.

[/quote]





As far I know I haven't come across any new version complied for solaris in regards to HTML Tidy based on this website I am viewing currently http://tidy.sourceforge.net/



Unless I am looking at the wrong spot. B)

[quote]
As far I know I haven't come across any new version complied for solaris in regards to HTML Tidy based on this website I am viewing currently http://tidy.sourceforge.net/



Unless I am looking at the wrong spot. B)

[/quote]



Just check the latest source out from the CVS and compile it. Its probably one of the easiest projects to compile.