Jump to content
Sign in to follow this  
lounge

w3 validator problem

Recommended Posts

lounge

Hi, We have made a custom design using the PageLines Framework. We checked our website using the w3 validator, but there are two strange errors: Line 201, Column 156: An body start tag seen but an element of the same type was already open. ??¦p custom content-shadow responsive pagelines-template-theme alpha full_width "> ??‰ Line 201, Column 156: Cannot recover after last error. Any further errors will be ignored. ??¦p custom content-shadow responsive pagelines-template-theme alpha full_width "> How can this be solved? URL to rapport: http://validator.w3.org/check?uri=http%3A%2F%2Fdj-lounge.com%2F&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.3

Share this post


Link to post
Share on other sites
catrina
It may be because of the iframes located in the fb DIV located directly below that opening body tag so that DIV may need to be removed. I thought that maybe you have two body tags for some reason, but I checked and you don't (you can't have two body tags in the same document - that's usually what that error points out).

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
dharmaduf
FWIW, I'm seeing the same issue, and even one more involving a "Stray end tag 'head'", when I try to validate Pagelines' HTML5 code on several of my websites. Examples: http://validator.nu/?doc=http%3A%2F%2Fjamesranch.net http://validator.nu/?doc=http%3A%2F%2Fkoganbuilders.com%2Fwp And don't even get me started with trying to validate CSS3... http://jigsaw.w3.org/css-validator/ But I would like to at least see the HTML5 check out, and nothing in "view-source" seems to indicate a problem.

Share this post


Link to post
Share on other sites
catrina
I don't know where that stray tag could be coming from. Did you also make customizations in the code?

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
dharmaduf
Sorry not to respond sooner Catrina, if by "code" you mean the Pagelines Framework theme files, nope. I bought Pagelines so I wouldn't have to mess with templates and all that stuff... ; ) The only thing I can think of is that something (a plugin maybe, or a script) is doing something fancy during the initial pageload that is causing the and tags to be duplicated... Which in turn is wreaking havoc on the validator. I dunno. A fresh install of Pagelines validates just fine, so it's something I'm adding or tweaking. Probably best not to lose sleep over it.

Share this post


Link to post
Share on other sites
Danny
@lounge @dharmaduf If you disable all active plug-ins and remove any custom code i.e. like HTML or iFrames etc.. do you still receive the errors ?

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
dharmaduf
@Danny Thanks for prompting me... I figured out my problem at least. It wasn't the plugins. On the Pagelines > Settings > Custom Code page you have the option to inject scripts into either the Header ("before the end of the HTML tag") or via Asynchronous Analytics ("goes underneath body tag"). But both actually insert the code into the same place, immediately before the tag. I was placing an anchor tag ([i][/i]) into the Analytics area (thinking it would be added below the tag, and adding a corresponding link to the footer menu for quickly navigating up from the bottom. Turns out that placing an tag in the was causing the validation error. Duh. So three takeaways: 1) Seems like either there's a bug in Pagelines, or the description is inaccurate. The Asynchronous Analytics script area is not "underneath body tag"; it's above the tag. 2) Don't put body tags in the head area or your site won't validate. 3) At least in Chrome, when I removed the from the script area the site validates as it should AND the link at the bottom of the page ([i]top of the page[/i]) works regardless. Now I have to see if it does in IE and FF... Probably not.

Share this post


Link to post
Share on other sites
Danny
Hi, The Asynchronous Analytics description is actually a typo and I believe that this has been fixed in an upcoming update. @lounge Did you attempt disabling any active plug-ins or removing custom code and see if this resolves your issue ?

Please search our forums, before posting!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×