? Failure

User tests: Successful: Unsuccessful:

avatar yvesh
yvesh
23 Dec 2016

Summary of Changes

As discussed in #13352 the login module has hardcoded ids, so will invalidate any html markup when used multiple times on the page. This PR makes all ids unique using the module id and / or moves them into CSS class.

Testing Instructions

Check if mod_login is still working. Review source code

Documentation Changes Required

avatar yvesh yvesh - open - 23 Dec 2016
avatar yvesh yvesh - change - 23 Dec 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 23 Dec 2016
Category Modules Front End
avatar yvesh yvesh - change - 23 Dec 2016
The description was changed
avatar yvesh yvesh - edited - 23 Dec 2016
avatar Bakual
Bakual - comment - 23 Dec 2016

Can you do that against the 4.0 branch?
I don't think we should change them in the 3.x series or we would likely break existing template styling.

avatar yvesh
yvesh - comment - 23 Dec 2016

@Bakual at least no org template uses any of the ids for that. It were mostly ids on input elements, not sure if anyone uses that at all. But you are right it could be a slight b/c break on the other hand it's also a bugfix. But no issue changing it to 4.0 branch.

avatar rdeutz
rdeutz - comment - 27 Dec 2016

3 or 4, it depends :-)

  • small chance that people use two login modules on one page
  • small chance that some use the ids for styling

The bugfix weights higher for me as the "b/c" break

avatar anibalsanchez
anibalsanchez - comment - 5 Jan 2017

Also, "b/c" break for javascript


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13355.

avatar rdeutz
rdeutz - comment - 5 Jan 2017

@anibalsanchez how this can be, sounds strange?

avatar anibalsanchez
anibalsanchez - comment - 6 Jan 2017

I mean any extension using the IDs to play with the login fields will break if we remove them.

avatar brianteeman brianteeman - change - 8 Jun 2017
Milestone Added:
avatar brianteeman brianteeman - change - 8 Jun 2017
Milestone Added:
avatar brianteeman brianteeman - change - 8 Jun 2017
Milestone Removed:
avatar brianteeman brianteeman - change - 8 Jun 2017
Milestone Removed:
avatar brianteeman
brianteeman - comment - 9 Sep 2017

Can you look at resolving the conflicts so that this can be tested please.

avatar yvesh
yvesh - comment - 11 Sep 2017

@brianteeman in Joomla 4 we want to have a general guideline / style on naming html locators (ids, classes etc.) with @ciar4n @C-Lodder @dgt41

// Closing because of that

avatar yvesh yvesh - change - 11 Sep 2017
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2017-09-11 14:33:33
Closed_By yvesh
avatar yvesh yvesh - close - 11 Sep 2017
avatar dgt41
dgt41 - comment - 11 Sep 2017

@yvesh if we ever go all the way with web components/ custom elements the usage of ids will be ultra limited, another win!

Add a Comment

Login with GitHub to post a comment