CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Does CiviCRM produce valid xhtml?
Pages: [1]

Author Topic: Does CiviCRM produce valid xhtml?  (Read 510 times)

frankcivi

  • I’m new here
  • *
  • Posts: 3
  • Karma: -1
  • CiviCRM version: 4.2
  • CMS version: Drupal 7.x
  • MySQL version: 5.0.27
  • PHP version: 4.1.1
Does CiviCRM produce valid xhtml?
February 28, 2013, 04:29:36 pm
I began trying out the online demo today.  I went to  › CiviCRM › CiviEvent Dashboard › Manage Events › Manage Event Templates

The I brought up the page Edit Event Template - Paid Conference with Online Registration.

I looked at the code.  The page began with: DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"

Because the page was declared as xhtml, I sent the page to the w3c validator.

I got back a list of 128 errors and 203 warnings.  The first error message was:

Line 116, Column 69: document type does not allow element "div" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag
…e-new-link"><span><div class="icon dropdown-icon"></div>Create New</span></div>✉
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. [/color] 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>").

What is causing all these errors?  Would I have the same problems, if I began using my own version of CiviCRM?  How can I help to correct this problem?


Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Does CiviCRM produce valid xhtml?
March 02, 2013, 11:45:36 am
Quote from: frankcivi on February 28, 2013, 04:29:36 pm
What is causing all these errors?

This is the HTML CiviCRM produces.

Quote from: frankcivi on February 28, 2013, 04:29:36 pm
  Would I have the same problems, if I began using my own version of CiviCRM?

Yes. I'm not sure if this is a "problem" in reality. I don't think producing valid HTML is much of a priority or a goal for the CiviCRM team. It would be nice I suppose, but I don't see what the problem is.

Quote from: frankcivi on February 28, 2013, 04:29:36 pm
How can I help to correct this problem?

You can certainly help us clean up the code to make it valid! :)

See here http://civicrm.org/blogs/totten/gitty-civicrm-moves-github for how to join the coding.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Does CiviCRM produce valid xhtml?

This forum was archived on 2017-11-26.