Skip to content

dart-creations.com

Advertisement
Home arrow Forums
DART Creations Forums
Welcome, Guest
Please Login or Register.    Lost Password?
slidemenu generates W3C validation errors Forum is locked
(1 viewing) 1 Guest
Joomla 1.5 Modules
Go to bottom
TOPIC: slidemenu generates W3C validation errors
#1087
slidemenu generates W3C validation errors 2 Years, 2 Months ago  
Errors found while checking this document as XHTML 1.0 Transitional!Result: 34 Errors

document type does not allow element X here
✉

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
Line 332, column 112: document type does not allow element "link" here
…levelsfiles/ddlevelsmenu-base.css" />
Line 333, column 109: document type does not allow element "link" here
…velsfiles/ddlevelsmenu-topbar.css" />
Line 334, column 110: document type does not allow element "link" here
…elsfiles/ddlevelsmenu-sidebar.css" />

✉
ID X already defined
✉

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 340, column 904: ID "ddsubmenuside1" already defined
&#8230;1"><span>About Us</span></a><ul id="ddsubmenuside1" class="ddsubmenustyle bla
Line 340, column 1562: ID "ddsubmenuside1" already defined
&#8230;>How Does It Work</span></a><ul id="ddsubmenuside1" class="ddsubmenustyle bla
Line 340, column 2476: ID "ddsubmenuside1" already defined
&#8230;side1"><span>Shop</span></a><ul id="ddsubmenuside1" class="ddsubmenustyle bla
Line 340, column 2872: ID "ddsubmenuside1" already defined
&#8230;><span>Contact Us</span></a><ul id="ddsubmenuside1" class="ddsubmenustyle bla

&#9993;
value of attribute Y invalid: X cannot start a name
&#9993;

It is possible that you violated the naming convention for this attribute. For example, id and name attributes must begin with a letter, not a digit.
Line 340, column 133: value of attribute "id" invalid: "9" cannot start a name
&#8230;span>Welcome</span></a></li><li id="98" class="item98"><a href="/news"><span>
Line 340, column 202: value of attribute "id" invalid: "6" cannot start a name
&#8230;"><span>News</span></a></li><li id="64" class="parent item64"><a href="/cours
Line 340, column 358: value of attribute "id" invalid: "9" cannot start a name
&#8230;"ddsubmenustyle blackwhite"><li id="95" class="item95"><a href="/courses/long


Joomla! 1.5.14 Stable mod_slidemenu 1.5.0
 
Logged Logged
  The topic has been locked.
#1099
Re:slidemenu generates W3C validation errors 2 Years, 2 Months ago  
I haven'ted tested this for validation, that might come in the future, or possibly of somebody did it and sent me the code, I'd appreciate sharing the code with the rest of the world
 
Logged Logged
  The topic has been locked.
#1290
Re:slidemenu generates W3C validation errors 1 Year, 11 Months ago  
My website generates about 300+ errors in W3C Validation. Has there been any progress in fixing this? All the errors are pretty much the same problem, something starting with a number instead of a letter. I'd really appreciate if this can be fixed or if anyone has suggestions. Thank you.
 
Logged Logged
  The topic has been locked.
#1301
Re:slidemenu generates W3C validation errors 1 Year, 11 Months ago  
Is this being completely ignored?
 
Logged Logged
  The topic has been locked.
#1486
mackal
Poland the best
User Offline Click here to see the profile of this user
Gender: Male Artefico.net
Re:slidemenu generates W3C validation errors 1 Year, 7 Months ago  
----- Polski ------
Rozwiazalem ten problem po przez usuniecie samego wpisu id="".
Skrypt dziala poprawnie na róznych przegladarkach.

wystarczy zmienic; plik helper.php

Stara wersja:
linia 145 -> // Start the item
linia 146 -> $this->_buffer .= '<li access="'.$this->_current->access.'" level="'.$depth.'" id="'.$this->_current->id.'">';

Nowa wersja:
linia 145 -> // Start the item
linia 146 -> $this->_buffer .= '<li access="'.$this->_current->access.'" level="'.$depth.'" id="'.$this->_current->id.'">';



----- English ------
I Solved this problem by removing the same entry id = ""
The script works correctly on different browsers

change file helper.php

Old:
linia 145 -> // Start the item
linia 146 -> $this->_buffer .= '<li access="'.$this->_current->access.'" level="'.$depth.'" id="'.$this->_current->id.'">';

New:
linia 145 -> // Start the item
linia 146 -> $this->_buffer .= '<li access="'.$this->_current->access.'" level="'.$depth.'" id="'.$this->_current->id.'">';
 
Logged Logged
 
Last Edit: 2010/06/29 08:25 By mackal.
 
  The topic has been locked.
#1489
Re:slidemenu generates W3C validation errors 1 Year, 7 Months ago  
mackal wrote:

Old:
linia 145 -> // Start the item
linia 146 -> $this->_buffer .= '<li access="'.$this->_current->access.'" level="'.$depth.'" id="'.$this->_current->id.'">';

New:
linia 145 -> // Start the item
linia 146 -> $this->_buffer .= '<li access="'.$this->_current->access.'" level="'.$depth.'" id="'.$this->_current->id.'">';


this is the same...


I replace with on line 256 (maybe we have different versions?)
Code:

#245 // Start the item
#246 $this->_buffer .= '<li access="'.$this->_current->access.'" level="'.$depth.'" id="itemid'.$this->_current->id.'">';



I added "itemid" before id because html element id can´t start with number

You need to edit tmpl/default.php on line 167-189:
Code:


#167 $node->addAttribute('class', $node->attributes('class').' itemitemid'.$id);
#168 } else {
#169 $node->addAttribute('class', 'itemitemid'.$id);



and than css... (another story)



but there are still W3C errors because of same submenus id


# Error ID X already defined


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 197, column 11: ID "ddsubmenu1" already defined

<ul id="ddsubmenu1" class="ddsubmenustyle substyle3">

* Line 255, column 11: ID "ddsubmenu1" already defined

<ul id="ddsubmenu1" class="ddsubmenustyle substyle8">

* Line 288, column 11: ID "ddsubmenu1" already defined

<ul id="ddsubmenu1" class="ddsubmenustyle substyle32">

# Error


* Line 197, column 54: ID ddsubmenu1 already defined

<ul id="ddsubmenu1" class="ddsubmenustyle substyle3">

* Line 255, column 54: ID ddsubmenu1 already defined

<ul id="ddsubmenu1" class="ddsubmenustyle substyle8">

* Line 288, column 55: ID ddsubmenu1 already defined

Code:

<ul id="ddsubmenu1" class="ddsubmenustyle substyle32">




...

. Can anyone help me?
 
Logged Logged
 
Last Edit: 2010/07/01 06:37 By mkolar.
  The topic has been locked.
Go to top

Buy us a beer!

If we've helped you, consider buying a beer €3. It will inspire us to keep on giving! Cheers!

Sponsors

Login Form






Lost Password?
No account yet? Register

Pagerank
Generated in 0.60485 Seconds