Kunena 7.1.1 & Kunena 6.4.17 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.1.1 [K 7.1.1] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.x./6.2.x This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 / K7.0 and issues discovered during the last development stages of K 7.1
Just a reminder: K6.4.17 receives only securities fixes until end of 2026, so it's advised for users to upgrade to K7.1.

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

More
8 years 11 months ago - 8 years 11 months ago #197143 by 53e437eb2fd79d469d4f37b8
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):
Code:
[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!
Last edit: 8 years 11 months ago by 53e437eb2fd79d469d4f37b8. Reason: Added one more screenshot

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

More
8 years 10 months ago #197570 by gurubob
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
8 years 10 months ago #197573 by 810
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.

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

More
8 years 10 months ago - 8 years 10 months ago #197574 by gurubob
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: 8 years 10 months ago by gurubob.

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

More
8 years 10 months ago #197575 by 810
ok, fixed the issue, will be on the next K5.1 release.

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

More
8 years 10 months ago #197580 by 53e437eb2fd79d469d4f37b8

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

Time to create page: 0.114 seconds