By Steve Kraft on Thursday, 04 February 2021
Posted in Technical Issues
Replies 1
Likes 0
Views 769
Votes 0
Hi there,

in this module is an HTML element - id="ed" in it

When you use the module more than one time on a page this will run in an error "double IDs".

It will be nice when you delete this id and/or put it as class on one of the next updates.

Than you,
Steve
Hi Steve,

Regarding the 'duplicate ID' error, do you see these errors from html validator?
If yes, then we are aware of this but currently we need the ID in the modules so that:

1. When rendering the modules, the css styling can get the correct precedence. E.g.


// Joomla template:
#body-id .btn {
background: red;
}

// this will not get precedence
.ed .btn {
background: black;
}


2. To simplify the css selectors thus reducing the css files size.
If each modules to have it own ID, mean we will write more css code and this increase the css file size.
E.g.


#ed .btn,
#ed-module-x .btn,
#ed-module-y .btn,
#ed .form-control,
#ed-module-x .form-control,
#ed-module-y .form-control,
.
.
.



Anyway, we are still figuring out a way to resolve this 'duplicate id' conflict without using multiple ids.

Thanks and have a nice day
Sam
·
Friday, 05 February 2021 12:30
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post