Improve inline js/css type rendering in html5#9843
Conversation
|
I have tested this item ✅ successfully on 20a41a8 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9843. |
|
In protostar this block is rendered unchanged: Also in Beez there is this unchanged block:
|
|
@waader that's true. That happens because someone didn't use the Joomla API to load the style and javascript. But that as nothing to do with this PR does. |
|
I have tested this item ✅ successfully on 20a41a8 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9843. |
|
@brianteeman RTC? |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9843. |
Pull Request for Improvement.
Summary of Changes
This PR improves inline js/css rendering in HTML5.
In HTML5 there are default type for:
scripttag:text/javascriptstyletag:text/cssSo they are not needing when the document is rendered in HTML5.
Joomla already removes them in HTML5 for external js/css files, but not for inline js/css.
This PR improves that.
Testing Instructions
To test the style tag you can add to your protostar
index.phpfile, for instance:That should be rendered, after the patch. as
Also check code difference.