From e625af3fef85b3a65caceab4028d4bfea90b16cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Go=C5=82e=CC=A8biowski?= Date: Tue, 13 May 2014 02:41:01 +0200 Subject: [PATCH] Remove type="text/javascript" from script tags. "text/javascript" is not a correct MIME type (the correct one is "application/javascript") but it's not even needed; all browsers default to the correct type and treat it as executable JS when type is ommited. Since not all browsers recognize the "application/javascript" MIME type the only way to both stay compliant and to support all popular browsers is to omit the type. It's also shorter this way. --- examples/acroforms/index.html | 24 +++--- examples/helloworld/index.html | 24 +++--- examples/text-only/index.html | 2 +- examples/text-selection/index.html | 6 +- extensions/b2g/viewer.html | 8 +- test/font/font_test.html | 78 ++++++++++---------- test/test_slave.html | 26 +++---- test/unit/unit_test.html | 90 +++++++++++------------ web/viewer-snippet-chrome-extension.html | 4 +- web/viewer-snippet-firefox-extension.html | 4 +- web/viewer-snippet-minified.html | 2 +- web/viewer-snippet.html | 4 +- web/viewer.html | 68 ++++++++--------- 13 files changed, 170 insertions(+), 170 deletions(-) diff --git a/examples/acroforms/index.html b/examples/acroforms/index.html index a791aa0ac..b91b79c76 100644 --- a/examples/acroforms/index.html +++ b/examples/acroforms/index.html @@ -4,18 +4,18 @@ - - - - - - - - - - + + + + + + + + + + - + diff --git a/examples/helloworld/index.html b/examples/helloworld/index.html index 4400999f4..651e6a5a6 100644 --- a/examples/helloworld/index.html +++ b/examples/helloworld/index.html @@ -4,24 +4,24 @@ - - - - - - - - - - + + + + + + + + + + - - + diff --git a/examples/text-only/index.html b/examples/text-only/index.html index 332532a24..97a38bfa1 100644 --- a/examples/text-only/index.html +++ b/examples/text-only/index.html @@ -2,7 +2,7 @@ Text-only PDF.js example - + diff --git a/examples/text-selection/index.html b/examples/text-selection/index.html index 9837654ec..08c30db9c 100644 --- a/examples/text-selection/index.html +++ b/examples/text-selection/index.html @@ -5,7 +5,7 @@ - + @@ -13,12 +13,12 @@ - - + This is a minimal pdf.js text-selection demo. The existing minimal-example shows you how to render a PDF, but not diff --git a/extensions/b2g/viewer.html b/extensions/b2g/viewer.html index 8e20d4de9..bee77f177 100644 --- a/extensions/b2g/viewer.html +++ b/extensions/b2g/viewer.html @@ -24,11 +24,11 @@ limitations under the License. - - - + + + - + diff --git a/test/font/font_test.html b/test/font/font_test.html index 70ca569e9..5de571700 100644 --- a/test/font/font_test.html +++ b/test/font/font_test.html @@ -6,50 +6,50 @@ - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + - - - - - - - - - - - + + + + + + + + + + + - @@ -41,7 +41,7 @@ limitations under the License.

Inflight requests:

- diff --git a/test/unit/unit_test.html b/test/unit/unit_test.html index 2a1562843..742f47219 100644 --- a/test/unit/unit_test.html +++ b/test/unit/unit_test.html @@ -6,55 +6,55 @@ - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + - + + diff --git a/web/viewer-snippet-firefox-extension.html b/web/viewer-snippet-firefox-extension.html index d53a3f7ec..03b56ca51 100644 --- a/web/viewer-snippet-firefox-extension.html +++ b/web/viewer-snippet-firefox-extension.html @@ -1,4 +1,4 @@ - - + + diff --git a/web/viewer-snippet-minified.html b/web/viewer-snippet-minified.html index 60c14981c..4dbdb7333 100644 --- a/web/viewer-snippet-minified.html +++ b/web/viewer-snippet-minified.html @@ -1,3 +1,3 @@ - + diff --git a/web/viewer-snippet.html b/web/viewer-snippet.html index 47c8a8b14..5cb1d2b16 100644 --- a/web/viewer-snippet.html +++ b/web/viewer-snippet.html @@ -1,4 +1,4 @@ - - + + diff --git a/web/viewer.html b/web/viewer.html index e94584878..6334ff8a8 100644 --- a/web/viewer.html +++ b/web/viewer.html @@ -39,25 +39,25 @@ http://sourceforge.net/adobe/cmap/wiki/License/ - + - + - - - - - - - - - - - + + + + + + + + + + + @@ -65,30 +65,30 @@ http://sourceforge.net/adobe/cmap/wiki/License/ - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - + +