Closed rsi21 closed 2 months ago
It will automatically skip unnecessary type attribute when doctype is HTML5, this is indeed new since Faces 4.
See also https://github.com/jakartaee/faces/issues/1565 and https://balusc.omnifaces.org/2021/11/whats-new-in-faces-40.html
It will automatically skip unnecessary type attribute when doctype is HTML5, this is indeed new since Faces 4.
See also jakartaee/faces#1565 and https://balusc.omnifaces.org/2021/11/whats-new-in-faces-40.html
Hi @BalusC , i missed that change, Thanks for your quick feedback!
Describe the bug
@resourceDependency is not setting the resource type anymore
To Reproduce
just creating a simple component adding a ressource with @ResourceDependency annotation ` @ResourceDependency(library = "lib", name = "javascript/my_component.js") public class MyComponent {
`
Expected behavior
In previous versions of Mojarra, when adding a ressource using annotation @resourceDependency, the type attribute was added dependending on the resource type. (like text/css, text/javacript..). In version 4.0.4 it is not the case anymore. Or may be it is a wanted change i missed in JSF specs ?
Screenshots
We can see here the diference between Mojarra 2.3 and 4.0.4
With Mojarra 2.3.14 (JBoss 7.4.12):![image](https://github.com/eclipse-ee4j/mojarra/assets/14235105/cc217b41-3f3d-478c-aa80-3783e1c28f15)
With Mojarra 4.0.4 (JBoss EAP 8) and same resources:![image](https://github.com/eclipse-ee4j/mojarra/assets/14235105/8e151644-03bc-4f9c-b1c8-bfcc9fd3cef8)