Jump to content

Recommended Posts

Posted

It depends. What errors does it give you?

 

HTML Tidy wouldn't be much use for a Joomla site as there'll be a lot of server side processing. I'd only ever use it to tidy up a static html page, and even then there's always the chance that it'll send your website all over the place.

  • Thanks 1
Posted

Thanks fernt,

 

I see there is a Clean-up Messy Code icon in the admin page editor. Is that safe to use? Or am I best doing my editing line by line in notepad. Sample entry found by W3C:

 

Line 249, Column 50: document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag

…Normal" style="margin: 0cm 0cm 0pt;">

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

 

One possible cause for this message is that you have attempted to put a block-level element (such as "

" or "

") inside an inline element (such as "", "", or "").

Posted

I get that error for my site too. For me, it's from the html I use to centre the highslide slideshow on each of my news items, but I'm not sure of a way around it (or at least haven't investigated it properly yet).

 

I've never seen the Clean-up Messy Code icon, although I use JCE rather than the default TinyMCE. It might be worth a try, as long as you back up what you have there currently beforehand (easiest method is just to copy and paste it into Notepad, and then copy and paste it back into the editor when everything goes wrong).

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...