Install Joomla 4
Enable Debug Language in Global Config
Navigate to add a new article
No JS console errors.
SyntaxError: The string did not match the expected pattern.
safari on mac, but probably unrelated.
// @dgrammatiko ?
Confirmed for all Browsers, below for Firefox.
Uncaught DOMException: Document.querySelectorAll: '#jform_articletext_**Article**Modal' is not a valid selector modal.min.js:1 <anonymous> http://localhost:8888/sample/joomla40/media/vendor/bootstrap/js/modal.min.js?5.0.0-beta2:1 forEach self-hosted:206 <anonymous> http://localhost:8888/sample/joomla40/media/vendor/bootstrap/js/modal.min.js?5.0.0-beta2:1 InnerModuleEvaluation self-hosted:2379 evaluation self-hosted:2330
all xtd broken
code produced is
<div id="jform_articletext_**Article**Modal" role="dialog" tabindex="-1" class="joomla-modal modal fade" data-url="http://localhost:8888/sample/joomla40/administrator/index.php?option=com_content&view=articles&layout=modal&tmpl=component&2a78b7e25e9fac793dbf382b91f66d1c=1&editor=jform_articletext" data-iframe="<iframe class="iframe" src="http://localhost:8888/sample/joomla40/administrator/index.php?option=com_content&amp;view=articles&amp;layout=modal&amp;tmpl=component&amp;2a78b7e25e9fac793dbf382b91f66d1c=1&amp;editor=jform_articletext" name="**Article**" title="**Article**" height="300px" width="800px"></iframe>">
** part that comes from the debug is not valid for an ID. Chenge the part there to skip the debug output for this part of the ID. It's not a JS error it's invalid HTML
Lol - just had a PR rejected for disabling language debug for genuine reasons and you want me to start that fight here too hahah
In this case it is absolutely necessary for that modal part only and it concerns all xtd, not only articles modal. ;)
just had a PR rejected for disabling language debug for genuine reasons and you want me to start that fight here too hahah
If debug language creates invalid HTML then there's a need for a new SPEC compliant implementation. You can't attach random invalid characters to classes,ids, etc and expect that things will continue to work...
Edit also I don't think that an id="jform_articletext_ΆρθροModal" is valid either. The string there should not be translatable AFAIK
In this case, the issue comes from
<div id="<?php echo $selector; ?>"
In this case, the issue comes from /layouts/libraries/html/bootstrap/modal/main.php
Nope, it's coming from:
Basically the object there needs also a non translated string that will be passed then to the modal as the ID: eg
Article instead of
Or you can use
|Closed_Date||0000-00-00 00:00:00||⇒||2021-04-21 10:15:25|
Ignore me. My browser had "internally crashed" apparently according to mac, and on posting the comment to this thread the whole browser closed and segfaulted hahahahahahah
Shall I re-open the issue?
Nope - totally not a problem - dumb safari.