-
Improvement
-
Resolution: Fixed
-
Minor
-
5.0
-
MOODLE_500_STABLE
-
MOODLE_500_STABLE
-
MDL-83339-main -
-
-
-
3
-
HQ 2025 Planning I1 Moppies
Since 4.0 the course editor uses smaller AMD modules to control each UI element.
The first implemented modules used element IDs and the first init parameter. However, later in the code, it changes to query selectors (because using IDs is not recommended by Moodle coding style).
This issue is about replacing all previous IDs with query selectors. This means:
- Change the affected modules in course/format/amd/src/content to use query selectors.
- Add ID as a fallback when the query selector returns nothing (for backward compatibility). However, it should log a debug message alerting that ID use is deprecated.
- Create an issue for the final deprecation of using direct IDs in Moodle 6.0.