+ Reply to Thread
Results 1 to 4 of 4

Thread: w3c errors

  Share/Bookmark
  1. #1

    Reputation Reputation Reputation
    speckytecky's Avatar
    Join Date
    May 2006
    Location
    Devizes
    Posts
    865
    Thank Post
    1,264
    Thanked 39 Times in 33 Posts
    Rep Power
    17

    Default w3c errors

    Running the site I'm currently working on through The W3C Markup Validation Service it brings up 34 errors! Mostly does not allow element "p" here. I see the validator has the option to Cleanup Markup with HTML tidy.

    What's the recommendation here for sorting problems out please.

  2. #2

    Reputation

    Join Date
    Feb 2009
    Location
    Manchester
    Posts
    38
    Thank Post
    11
    Thanked 4 Times in 4 Posts
    Rep Power
    4

    Default

    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.

  3. Thanks to fernt from:

    speckytecky (17-11-2009)

  4. #3

    Reputation Reputation Reputation
    speckytecky's Avatar
    Join Date
    May 2006
    Location
    Devizes
    Posts
    865
    Thank Post
    1,264
    Thanked 39 Times in 33 Posts
    Rep Power
    17

    Default

    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;"><span style="font-family: &quot;Verdana&✉
    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 "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

  5. #4

    Reputation

    Join Date
    Feb 2009
    Location
    Manchester
    Posts
    38
    Thank Post
    11
    Thanked 4 Times in 4 Posts
    Rep Power
    4

    Default

    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).

  6. Thanks to fernt from:

    speckytecky (17-11-2009)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Problem with W3C XHTML Validator
    By smali in forum Web Development
    Replies: 2
    Last Post: 08-08-2007, 09:06 AM
  2. Replies: 0
    Last Post: 02-07-2007, 03:27 PM
  3. Replies: 5
    Last Post: 10-12-2006, 10:24 PM
  4. Moodle - W3C
    By wesleyw in forum Virtual Learning Platforms
    Replies: 3
    Last Post: 22-05-2006, 01:03 PM
  5. Microsoft + W3C Standards = ...
    By E1uSiV3 in forum Jokes/Interweb Things
    Replies: 3
    Last Post: 12-10-2005, 12:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts