XHTML 1.o Strict With WP Extra <p> Tags
-
I’m using WP 2.7 and my custom theme is XHTML 1.0 Strict – or at least I am trying to get it there. It does start there with no XHTML errors at all.
When I add code to the HTML code editor the code is changed to add extra <p> tags which render the page non-W3C compliant. I edit the code to remove line breaks in the editor and WP 2.7 still adds extra <p> tags. Specifically it adds them after a </table> tag, as well as other places.
I’m basically chasing my tail here. WP breaks the code and does not allow me to create error-free W3C compliant XHTML 1.0 Strict pages because of the extra <p> tags it inserts.
It seems to me that in HTML editing mode it would make sense to not add any extra tags, whereas in Visual mode it should add them because that is what Visual mode is all about.
Is there a solution for this?
I am doing this for multiple customer sites so this is extremely important to us.
Thanks for any input to this.
- The topic ‘XHTML 1.o Strict With WP Extra <p> Tags’ is closed to new replies.