You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2018/07/03 21:16:15 UTC
[maven-surefire] 01/01: mime js from text/javascript to
application/javascript
This is an automated email from the ASF dual-hosted git repository.
tibordigana pushed a commit to branch 1532
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git
commit 44090df403d5b3ccd48282f4ffb7666f167d522b
Author: based2 <ba...@users.noreply.github.com>
AuthorDate: Sat Jun 30 17:12:07 2018 +0200
mime js from text/javascript to application/javascript
https://stackoverflow.com/questions/189850/what-is-the-javascript-mime-type-for-the-type-attribute-of-a-script-tag
"This is a common mistake. The MIME type for javascript wasn't standardized for years. It's now officially: "application/javascript"."
http://www.rfc-editor.org/rfc/rfc4329.txt
---
.../apache/maven/plugins/surefire/report/SurefireReportGenerator.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportGenerator.java b/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportGenerator.java
index f9b9480..6c02ad9 100644
--- a/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportGenerator.java
+++ b/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportGenerator.java
@@ -78,7 +78,7 @@ public final class SurefireReportGenerator
sink.body();
SinkEventAttributeSet atts = new SinkEventAttributeSet();
- atts.addAttribute( TYPE, "text/javascript" );
+ atts.addAttribute( TYPE, "application/javascript" );
sink.unknown( "script", new Object[]{ HtmlMarkup.TAG_TYPE_START }, atts );
sink.unknown( "cdata", new Object[]{ HtmlMarkup.CDATA_TYPE, javascriptToggleDisplayCode() }, null );
sink.unknown( "script", new Object[]{ HtmlMarkup.TAG_TYPE_END }, null );