Install Joomla 4
Enable Debug Language in Global Config
Navigate to add a new article
see javascript console on the Edit Article Page
No JS console errors.
SyntaxError: The string did not match the expected pattern.
safari on mac, but probably unrelated.
// @dgrammatiko ?
Labels |
Added:
?
|
#jform_articletext_**Article**Modal
The **
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 /layouts/libraries/html/bootstrap/modal/main.php
code: <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 **Article**
Or you can use
How do you pass $button->realName
to the id?
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-04-21 10:15:25 |
Closed_By | ⇒ | richard67 |
Im getting this error again today @dgrammatiko - right out the box after installation
The string did not match the expected pattern
But only in safari.... even after reinstalling Joomla and re-npm-ing everything :(
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?
Ah ok.
Shall I re-open the issue?
Nope - totally not a problem - dumb safari.
Confirmed for all Browsers, below for Firefox.
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>">