I have added the following in the body of a block assigned to left sidebar (Garland).

[collapse collapsed title=help]some help text. [/collapse]

Can the following W3C validation error be prevented within collapse_text?

document type does not allow element "fieldset" here; missing one of "object", "ins", "del", "map" start-tag
…ntent"><p></p><p><fieldset class=" collapsible collapsed"><legend>help</legend>

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

Comments

pooneil’s picture

Hi,

I haven't gotten a chance to reproduce your error. However, I just created a new beta under 6.x-2.0-beta1 that builds the output slightly differently to prevent a separate validation error. Feel free to give it a try.

Regards,
Anthony

pooneil’s picture

Status: Active » Closed (fixed)
koushal’s picture

Assigned: Unassigned » koushal
Priority: Normal » Major
Status: Closed (fixed) » Active
Issue tags: +Resolve W3C Validation Error

Hi
I am using drupal 6, my website url is http://rickfootball.wpjoomlaexperts.com , when I am validating my site with http://validator.w3.org , I am getting 4 errors, where 3 errors are related to each other.

First:

Line 439, Column 6: end tag for element "div" which is not open

Second:

Line 464, Column 38: document type does not allow element "script" here

(here I never used any javascript after ) Third Line 470, Column 10: document type does not allow element "noscript" here Javascript required (Again I never used tag on my site) Fourth: Line 470, Column 13: document type does not allow element "i" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag Javascript required please advice and help.
pukku’s picture

Status: Active » Closed (fixed)

Hi!

First, you should have opened a new ticket for this, not re-activated this closed one.

Second, hosting a Drupal site at the "wpjoomlaexperts.com" domain?

The first error you list, the one about an extra </div> seems to be some kind of theme error.

For the rest, if you use the "show source" option for the validator, you'll see that something is adding Javascript after your closing </html> tag. Safari (the browser) thinks your site contains malware, so you might want to look and see if you've been compromised.

None of these issues are related to this module, so I'm re-closing the ticket, as it was re-opened erroneously.

Ricky

avpaderno’s picture

Issue summary: View changes
Issue tags: -W3::C validation +W3C validation

I am merging two issue tags. I apologize for bumping a closed issue.