Active
Project:
UserLoginBar
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Jan 2009 at 06:09 UTC
Updated:
21 Mar 2009 at 18:13 UTC
This module inserts the user login bar like this:
The problem is that ID selectors are required to be UNIQUE in the entire document, but "user-login-form" is used here BOTH for the div wrapper's id selector AND for the form's id selector.
Comments
Comment #1
ace.frahm commentedHere's what it outputs:
Comment #2
blackarma commentedNoticed this also today when was running XHTML Strict 1.0 validation.
Was looking at modules code and noticed that form element id is generated by drupal so to fix this simply do this steps:
1) Locate userloginbar.module file in sites/all/modules/userloginbar then at the line 73
change this:
$output = '<div id="user-login-form">'. $output .'</div>';to this (you can leave -wrap there or use your own):
$output = '<div id="user-login-form-wrap">'. $output .'</div>';2) Locate userloginbar.css in same folder (sites/all/modules/userloginbar):
Change all of:
#user-login-formTo this ones:
#user-login-form-wrapSorry about my english.
This gives you the valid html code.