WP-Highslide Plugin XHTML gotcha

Written by James McDonald

April 28, 2009

I have the WP-Highslide plugin installed. When I attempt to validate my highslide enabled pages over at http://validator.w3.org/ I get:

Line 231, Column 62: document type does not allow element "div" here; missing one of 
"button", "map", "object", "ins", "del", "noscript" start-tag

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

I have been trying to trace the problem and it appears that the highslide plugin doesn’t strip the enclosing paragraph “<p>” tags and the XHTML validator flags it as an error.

This causes an error:

So yes a VTP trunk running dot1q encapsulation can traverse a Linksys WAP54G Wireless Link.

Catalyst Switch Setup

This doesn’t cause a validator error:

So yes a VTP trunk running dot1q encapsulation can traverse a Linksys WAP54G Wireless Link.

Catalyst Switch Setup

Now I just have to learn enough PHP to figure out how to fix it.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

You May Also Like…