Non-proprietary tags

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
User avatar
MaxD
Posts: 127
Joined: Mon Dec 18, 2006 10:05 pm
Location: UK
Contact:

Non-proprietary tags

Post by MaxD »

I'm aiming to create valid transitional xhtml pages, with this problem. On error checking my page, it gives me a few warnings 'non-proprietary tags' and strips the xhtml page declaration. On error checking this page again, the error I get is, NO DOCTYPE. How can I rectify this? I will mention that these errors apply to a span class with a onmouseover script.
This is a 'tooltip' script I obtained from dhtmlgoodies.com

Also, I'm using a Google map script, which also gives me the non-proprietary code warning, and corrects it, which gives me a valid xhtml document, but also stops the Google map from working. :? Is there something I should do to validate these pages and keep things working?

I'm using version 8.2.0.79
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

Can you post the page? It sounds like maybe your using "tidy>Validate and fix" and it's trying to 'clean things up' for you. I use the "Tools>W3C validator" and correct any errors it finds manually.

If you can post a page, I can help you with actual errors.


Will
User avatar
MaxD
Posts: 127
Joined: Mon Dec 18, 2006 10:05 pm
Location: UK
Contact:

Post by MaxD »

Hi
sorry for the delay in getting back to you. :roll: The error checker is generally a good feature and a time saver. Re my site, I have to make time to check it, but if you have some suggestions re the above, I'd be interested.

Here is my site, well one of them :wink:

SITE HERE
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

the error it's giving you to start with is that you never actually declare the html element which needs to be the first tag after the doctype declaration.

try adding this line and then revalidate:

Code: Select all

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
put it right after this:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
and before your <head> tag

you do have the closing </html> so you're in good shape there.
User avatar
MaxD
Posts: 127
Joined: Mon Dec 18, 2006 10:05 pm
Location: UK
Contact:

Post by MaxD »

syrupcore wrote:the error it's giving you to start with is that you never actually declare the html element which needs to be the first tag after the doctype declaration.

you do have the closing </html> so you're in good shape there.
Thanks for the feedback syrupcore, unfortunately I don't think you understood my post. Re the above, if I didn't understand the basic structure of a web page I'd be using a wysiwyg editor instead of a html editor, and certainly wouldn't have created my site.

By default, HTMLPad adds all the code you highlighted on clicking a 'new page'. The problem lies with the fact that certain javascripts I'm using created warnings on error checking, and on checking the Home Page the editor actually removed the DOCTYPE, hence its absence. Getting back to the original query, how do I retain the DOCTYPE and validate the page. I suspect already the two aspects of the page are irreconcilable.
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

certainly wasn't trying to belittle your knowledge of html. Just trying to help. I didn't see it in there so I assumed.... incorrectly. :)

can you speak in specific terms? What steps are you taking that's removing the doctype? 'validate' could mean tidy, internal validator, 3rd party validator, web validator...

in options>preferences>language options>html, do you have the correct doctype set there?

I'm not sure what you mean when you say, "By default, HTMLPad adds all the code you highlighted on clicking a 'new page'." I've never seen that behavior when creating a new page. I think I'm misunderstanding again.

If you use the w3c validator, (options>w3c validator) it should never actually touch the document. That's what I use and I've never had the problem. Again, it sounds to me like you're using Tidy and it's set up incorrectly but then again, I'm just guessing because you still haven't said.

Will
User avatar
MaxD
Posts: 127
Joined: Mon Dec 18, 2006 10:05 pm
Location: UK
Contact:

Post by MaxD »

I'm just using the tidy function. It may be better to validate the page and do some research. My aim was to validate the site, but once a few designer scripts were added, then things got a bit busier. Removed quite a few errors etc so will make an effort to do some more. The 'non-proprietary tags' though will be a sticking point.

I've tested my site in IE6, IE7 and Firefox and it looks OK. I expect it look OK in other browsers and if not... 8)
Post Reply