Simple Machines Community Forum

SMF Development => Bug Reports => Topic started by: smartmouse on March 01, 2020, 12:37:34 PM

Title: Found 2 elements with non-unique id #spell_form
Post by: smartmouse on March 01, 2020, 12:37:34 PM
Hello, I'm using SMF 2.1 RC2 and in the browser console I have the following warning everytime I load a topic page:

[DOM] Found 2 elements with non-unique id #spell_form: (More info: https://goo.gl/9p2vKq) (more details in attached image).

What's wrong with it?
Title: Re: Found 2 elements with non-unique id #spell_form
Post by: Antechinus on March 01, 2020, 03:10:55 PM
It's a bug. Congratulations. You found one. :)

ID's in HTML can only be used once on each page. If you mistakenly use an ID more than once, you get error messages like that.

Not sure if this one is already known on GitHub, but this should be moved to the Bug Reports board.
Title: Re: Found 2 elements with non-unique id #spell_form
Post by: smartmouse on March 02, 2020, 07:51:50 AM
Quote from: Antechinus on March 01, 2020, 03:10:55 PM
It's a bug. Congratulations. You found one. :)

ID's in HTML can only be used once on each page. If you mistakenly use an ID more than once, you get error messages like that.

Not sure if this one is already known on GitHub, but this should be moved to the Bug Reports board.
Glad to have found it. Thank you.