×
Kunena 5.1 RC 3 Released (16 Feb 2018)

The Kunena team is proud to announce the arrival of Kunena 5.1.0 RC3 [K 5.1.0] which is now available for download as a native Joomla extension for J! 3.8.x. This version addresses most of the issues that were discovered in K 5.1 and issues discovered during the development stages of K 5.1. This is a RC release.

Solved DOM Error: Found 2 elements with non-unique id

More
2 months 1 week ago - 2 months 1 week ago #1 by Cyrusxxxx
Cyrusxxxx created the topic: DOM Error: Found 2 elements with non-unique id
Hello to all, after upgrading Google Chrome to version 63.0.3239.84 I have started recieving following errors related to login form of Kunena (ver 5.0.12):
[DOM] Found 2 elements with non-unique id #login-passwd: (More info: https://goo.gl/9p2vKq) 
<input id=​"login-passwd" type=​"password" name=​"password" class=​"form-control" tabindex=​"2" size=​"18" placeholder=​"Lozinka" required>​ <input id=​"login-passwd" type=​"password" name=​"password" class=​"form-control" tabindex=​"2" size=​"18" placeholder=​"Lozinka" required>​
kategorije:1 
[DOM] Found 2 elements with non-unique id #login-remember: (More info: https://goo.gl/9p2vKq) 
<input id=​"login-remember" type=​"checkbox" name=​"remember" value=​"yes">​ 
<input id=​"login-remember" type=​"checkbox" name=​"remember" value=​"yes">​
kategorije:1 
[DOM] Found 2 elements with non-unique id #login-username: (More info: https://goo.gl/9p2vKq) 
<input id=​"login-username" type=​"text" name=​"username" class=​"form-control" tabindex=​"1" size=​"18" placeholder=​"Korisničko ime">​ <input id=​"login-username" type=​"text" name=​"username" class=​"form-control" tabindex=​"1" size=​"18" placeholder=​"Korisničko ime">​

This error is visible here also when I am not logged in.
Should I just ignore this?

Thank you!
Attachments:
Last Edit: 2 months 1 week ago by Cyrusxxxx. Reason: Added one more screenshot

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #2 by gurubob
gurubob replied the topic: DOM Error: Found 2 elements with non-unique id
Google sent me here ...

Looks like Chrome is now complaining about elements in the DOM with the same ID. In the case of this site there's a responsive login for non-dekstop sites that is the username and password.

This is going to be a widespread problem for many web developers and not specific to just this site or to Joomla.

Cheers,

- Bob -

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #3 by 810
810 replied the topic: DOM Error: Found 2 elements with non-unique id
We have 2 menu's . one for normal screen and one for the mobile. So we need to create a different name for the mobile one, and copy all the custom javascript.

basically more lines of codes for the same functions, i don't why google want this behavior.

Your feedback on the JED helps us improve Kunena!

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago - 1 month 1 week ago #4 by gurubob
gurubob replied the topic: DOM Error: Found 2 elements with non-unique id
Duplicate ID's on a page have been a no-no for a long time. Don't use a duplicate ID to target it via JS, you could just use a custom attribute, e.g. data-id ...

$('*[data-id="login"]').on('click', function() { ... });
Last Edit: 1 month 1 week ago by gurubob.

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #5 by 810
810 replied the topic: DOM Error: Found 2 elements with non-unique id
ok, fixed the issue, will be on the next K5.1 release.

Your feedback on the JED helps us improve Kunena!
The following user(s) said Thank You: Cyrusxxxx

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #6 by Cyrusxxxx
Cyrusxxxx replied the topic: DOM Error: Found 2 elements with non-unique id
Thank you 810.

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to add attachements.
  • Not Allowed: to edit your message.
Time to create page: 0.077 seconds