Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-31-2007, 07:25 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default w3 validation errors

Trying to get the site as clean and 'valid' as possible according to w3 standards.

Unfortunately it is showing 89 errors now. Horrible (even though site loads instantly and displays fine). Most of them are these errors that I cannot figure out and need help on.

.................................................. ..........

Line 897, Column 67: end tag for "img" omitted, but OMITTAG NO was specified

?" src="images/yes.gif" width="16" height="16"></td>
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".

.................................................. ..........

Line 897, Column 2: start tag was here. <img alt="Check" src="images/yes.gif" width="16" height="16"></td>

.................................................. ..........

Line 960, Column 188: there is no attribute "allowtransparency".?" scrolling="auto" allowtransparency="yes" name="cboxmain" id="cboxmain" stylLine 2288, Column 105: ID "collapseimg_forumhome_activeusers" already defined.?e('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="


An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).

.................................................. ..........

What exactly are they saying here and HOW would I resolve this correctly?
Reply With Quote
  #2  
Old 07-31-2007, 07:37 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chadi View Post
Trying to get the site as clean and 'valid' as possible according to w3 standards.

Unfortunately it is showing 89 errors now. Horrible (even though site loads instantly and displays fine). Most of them are these errors that I cannot figure out and need help on.

.................................................. ..........

Line 897, Column 67: end tag for "img" omitted, but OMITTAG NO was specified

?" src="images/yes.gif" width="16" height="16"></td>
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".

.................................................. ..........

Line 897, Column 2: start tag was here. <img alt="Check" src="images/yes.gif" width="16" height="16"></td>

.................................................. ..........

Line 960, Column 188: there is no attribute "allowtransparency".?" scrolling="auto" allowtransparency="yes" name="cboxmain" id="cboxmain" stylLine 2288, Column 105: ID "collapseimg_forumhome_activeusers" already defined.?e('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="


An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).

.................................................. ..........

What exactly are they saying here and HOW would I resolve this correctly?
You need to do this for that image:

Code:
<img alt="Check" src="images/yes.gif" width="16" height="16" />
As for allowtransparency, maybe remove it?
Reply With Quote
  #3  
Old 07-31-2007, 08:04 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. I just went from 89 to 41 errors just from fixing images. Completely forgot about the end / mark.

I also removed this to bring it down to 40 errors. About 5 are coming from the highslide mod which I posted in its thread but received no response yet. Maybe you'd know?

allowtransparency="yes"

.................................................. ..........

Line 712, Column 15: ID "highslide-container" already defined.</div><div id="highslide-container"></div>
An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).
.................................................. ..........

Line 705, Column 9: ID "highslide-container" first defined here.<div id="highslide-container"></div>

.................................................. ..........

Line 713, Column 9: ID "controlbar2" already defined.<div id="controlbar2" class="highslide-overlay controlbar2">
An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).

.................................................. ..........

Line 866, Column 39: character data is not allowed here.<table style="width: 100 cellspacing="3" cellpadding="3">
You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include:
  • putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>), or
  • forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes), or
  • using XHTML-style self-closing tags (such as <meta ... />) in HTML 4.01 or earlier. To fix, remove the extra slash ('/') character. For more information about the reasons for this, see Empty elements in SGML, HTML, XML, and XHTML.
.................................................. ..........

Line 866, Column 14: literal is missing closing delimiter.<table style="width: 100 cellspacing="3" cellpadding="3">
Did you forget to close a (double) quote mark?

.................................................. ..........


I really appreciate the help! Let's bring it down to zero errors




In regards to unique ID names, I am having a strange problem.

I have custom drop down menus in navbar and they look like this:

<td id="1" class="nav_menu_control" style="width: 81px">
(in header template)

<div class="vbmenu_popup" id="1_menu" style="display:none">
(in navbar template)

The above is default (showing errors in w3 validation) yet they work fine.

IF I change the ID each to something like below, it shows the menu title but no longer drops down the sub menu, nor shows the down arrow icon (indicating drop down menu)

<td id="menu1" class="nav_menu_control" style="width: 81px">
<div class="vbmenu_popup" id="menu1_menu" style="display:none">
Reply With Quote
  #4  
Old 08-01-2007, 07:26 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You do know the W3C Validation is really nothing to worry about?
Reply With Quote
  #5  
Old 08-01-2007, 09:56 AM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chadi View Post
Thanks. I just went from 89 to 41 errors just from fixing images. Completely forgot about the end / mark.

I also removed this to bring it down to 40 errors. About 5 are coming from the highslide mod which I posted in its thread but received no response yet. Maybe you'd know?

allowtransparency="yes"

.................................................. ..........

Line 712, Column 15: ID "highslide-container" already defined.</div><div id="highslide-container"></div>
An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).
.................................................. ..........

Line 705, Column 9: ID "highslide-container" first defined here.<div id="highslide-container"></div>

.................................................. ..........

Line 713, Column 9: ID "controlbar2" already defined.<div id="controlbar2" class="highslide-overlay controlbar2">
An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).

.................................................. ..........

Line 866, Column 39: character data is not allowed here.<table style="width: 100 cellspacing="3" cellpadding="3">
You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include:
  • putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>), or
  • forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes), or
  • using XHTML-style self-closing tags (such as <meta ... />) in HTML 4.01 or earlier. To fix, remove the extra slash ('/') character. For more information about the reasons for this, see Empty elements in SGML, HTML, XML, and XHTML.
.................................................. ..........

Line 866, Column 14: literal is missing closing delimiter.<table style="width: 100 cellspacing="3" cellpadding="3">
Did you forget to close a (double) quote mark?

.................................................. ..........


I really appreciate the help! Let's bring it down to zero errors




In regards to unique ID names, I am having a strange problem.

I have custom drop down menus in navbar and they look like this:

<td id="1" class="nav_menu_control" style="width: 81px">
(in header template)

<div class="vbmenu_popup" id="1_menu" style="display:none">
(in navbar template)

The above is default (showing errors in w3 validation) yet they work fine.

IF I change the ID each to something like below, it shows the menu title but no longer drops down the sub menu, nor shows the down arrow icon (indicating drop down menu)

<td id="menu1" class="nav_menu_control" style="width: 81px">
<div class="vbmenu_popup" id="menu1_menu" style="display:none">
You cannot use an id more than once, so if you are, change the id to a class then the # in the CSS next to the name to a .
Reply With Quote
  #6  
Old 08-01-2007, 04:40 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In regards to unique ID names, I am having a strange problem.

I have custom drop down menus in navbar and they look like this:

<td id="1" class="nav_menu_control" style="width: 81px">
(in header template)

<div class="vbmenu_popup" id="1_menu" style="display:none">
(in navbar template)

The above is default (showing errors in w3 validation) yet they work fine.

IF I change the ID each to something like below, it shows the menu title but no longer drops down the sub menu, nor shows the down arrow icon (indicating drop down menu)

<td id="menu1" class="nav_menu_control" style="width: 81px">
<div class="vbmenu_popup" id="menu1_menu" style="display:none">
Reply With Quote
  #7  
Old 08-02-2007, 06:22 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I hope someone can help me out here please. Thanks.
Reply With Quote
  #8  
Old 08-02-2007, 06:25 PM
consolegaming consolegaming is offline
 
Join Date: Jan 2007
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have u altered the css code too like suggested?

i.e. it'd be something like:

#1
#1_menu

maybe slightly different but the # would definantly be there.
Reply With Quote
  #9  
Old 08-02-2007, 08:07 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is no css code for the drop down menu.
Reply With Quote
  #10  
Old 08-02-2007, 08:55 PM
consolegaming consolegaming is offline
 
Join Date: Jan 2007
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For the css code comment I meant where the css gets declared, I can't be sure exactly where it'd be declared but it''s generally in the headinclude part of the template or the additional css section. DUnno if that helps though

Also another of my suggestions would be to try searching your template/s for the term: id="1"
and : id="1_menu"

maybe there are multiple sections that have that id applied to them. In which case they'd all need to be turned into class.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:55 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07495 seconds
  • Memory Usage 2,292KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete