[Pkg-mozext-commits] [requestpolicy] 27/280: [refactoring] add doctype & charset to html

David Prévot taffit at moszumanska.debian.org
Sat May 2 20:29:56 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository requestpolicy.

commit 64c8249e6c5bf79c5abe08a2a6b81fb367e133bb
Author: Martin Kimmerle <dev at 256k.de>
Date:   Tue Nov 25 06:26:54 2014 +0100

    [refactoring] add doctype & charset to html
---
 tests/content/css_and_js.html                                      | 4 +++-
 tests/content/destination.html                                     | 2 ++
 tests/content/form_1.html                                          | 4 +++-
 tests/content/form_2.html                                          | 4 +++-
 tests/content/form_3.html                                          | 7 +++++--
 tests/content/frameset_1.html                                      | 3 ++-
 tests/content/iframe_1.html                                        | 4 +++-
 tests/content/iframe_2.html                                        | 4 +++-
 tests/content/iframe_3.html                                        | 2 ++
 tests/content/iframe_4_redirect-meta-tag.html                      | 4 +++-
 tests/content/img_1.html                                           | 4 +++-
 tests/content/js_link_1.html                                       | 4 +++-
 tests/content/link_1.html                                          | 4 +++-
 tests/content/other_origins_1.html                                 | 2 ++
 tests/content/popup_1.html                                         | 4 +++-
 tests/content/popup_2.html                                         | 4 +++-
 tests/content/prefetch_1.html                                      | 4 +++-
 tests/content/redirect-js-document-location-auto.html              | 6 +++++-
 tests/content/redirect-js-document-location-link.html              | 6 +++++-
 tests/content/redirect-links.html                                  | 2 ++
 tests/content/redirect-meta-tag-01-immediate.html                  | 2 ++
 tests/content/redirect-meta-tag-02-delayed.html                    | 2 ++
 tests/content/redirect-meta-tag-03-multiple.html                   | 2 ++
 tests/content/redirect-meta-tag-04-relative-without-slash.html     | 2 ++
 tests/content/redirect-meta-tag-05-relative-with-slash.html        | 2 ++
 tests/content/redirect-meta-tag-06-different-formatting.html       | 2 ++
 .../content/redirect-meta-tag-07-different-formatting-delayed.html | 2 ++
 tests/content/redirect-meta-tag-08.html                            | 2 ++
 tests/content/redirect-meta-tag-09-relative.html                   | 2 ++
 tests/content/xhr_1.html                                           | 4 +++-
 30 files changed, 82 insertions(+), 18 deletions(-)

diff --git a/tests/content/css_and_js.html b/tests/content/css_and_js.html
index 6af0b77..ed1f45c 100644
--- a/tests/content/css_and_js.html
+++ b/tests/content/css_and_js.html
@@ -1,5 +1,7 @@
+<!doctype html>
 <html>
 <head>
+  <meta charset="utf-8" />
 </head>
 <body>
 
@@ -21,4 +23,4 @@
 </script>
 
 </body>
-</html>
\ No newline at end of file
+</html>
diff --git a/tests/content/destination.html b/tests/content/destination.html
index ff0c42b..e1e7db4 100644
--- a/tests/content/destination.html
+++ b/tests/content/destination.html
@@ -1,5 +1,7 @@
+<!doctype html>
 <html>
 <head>
+  <meta charset="utf-8" />
   <title>Destination page</title>
   <script src="inc/jquery.min.js"></script>
 </head>
diff --git a/tests/content/form_1.html b/tests/content/form_1.html
index bca84bc..bcb36bc 100644
--- a/tests/content/form_1.html
+++ b/tests/content/form_1.html
@@ -1,5 +1,7 @@
+<!doctype html>
 <html>
 <head>
+  <meta charset="utf-8" />
 </head>
 <body onload="document.getElementById('fm').submit()">
 
@@ -9,4 +11,4 @@
 </form>
 
 </body>
-</html>
\ No newline at end of file
+</html>
diff --git a/tests/content/form_2.html b/tests/content/form_2.html
index 448d4c2..4214fd0 100644
--- a/tests/content/form_2.html
+++ b/tests/content/form_2.html
@@ -1,5 +1,7 @@
+<!doctype html>
 <html>
 <head>
+  <meta charset="utf-8" />
 </head>
 <body>
 
@@ -49,4 +51,4 @@ for manual submission.</p>
 </script>
 
 </body>
-</html>
\ No newline at end of file
+</html>
diff --git a/tests/content/form_3.html b/tests/content/form_3.html
index 3ce3c0b..913dd8c 100644
--- a/tests/content/form_3.html
+++ b/tests/content/form_3.html
@@ -1,4 +1,7 @@
-<html> <head>
+<!doctype html>
+<html>
+<head>
+  <meta charset="utf-8" />
 </head>
 <body>
 
@@ -10,4 +13,4 @@
 
 
 </body>
-</html>
\ No newline at end of file
+</html>
diff --git a/tests/content/frameset_1.html b/tests/content/frameset_1.html
index 5167016..1770b9d 100644
--- a/tests/content/frameset_1.html
+++ b/tests/content/frameset_1.html
@@ -1,5 +1,6 @@
+<!doctype html>
 <html>
 <frameset cols = "*">
   <frame src="destination.html" />
 </frameset>
-</html>
\ No newline at end of file
+</html>
diff --git a/tests/content/iframe_1.html b/tests/content/iframe_1.html
index 83b9106..7759d59 100644
--- a/tests/content/iframe_1.html
+++ b/tests/content/iframe_1.html
@@ -1,9 +1,11 @@
+<!doctype html>
 <html>
 <head>
+  <meta charset="utf-8" />
 </head>
 <body>
 
 <iframe src="http://www.otherdomain.test/destination.html"></iframe>
 
 </body>
-</html>
\ No newline at end of file
+</html>
diff --git a/tests/content/iframe_2.html b/tests/content/iframe_2.html
index 98dbb57..8ccddfd 100644
--- a/tests/content/iframe_2.html
+++ b/tests/content/iframe_2.html
@@ -1,5 +1,7 @@
+<!doctype html>
 <html>
 <head>
+  <meta charset="utf-8" />
 
 <script language="JavaScript" type="text/javascript">
   function makeFrame(url) {
@@ -31,4 +33,4 @@ with a cross-site url.</p>
 </script>
 
 </body>
-</html>
\ No newline at end of file
+</html>
diff --git a/tests/content/iframe_3.html b/tests/content/iframe_3.html
index 5c5dbc6..4a4724b 100644
--- a/tests/content/iframe_3.html
+++ b/tests/content/iframe_3.html
@@ -1,5 +1,7 @@
+<!doctype html>
 <html>
 <head>
+  <meta charset="utf-8" />
   <script src="inc/jquery.min.js"></script>
   <script src="inc/global.js"></script>
 </head>
diff --git a/tests/content/iframe_4_redirect-meta-tag.html b/tests/content/iframe_4_redirect-meta-tag.html
index f926d21..b414de3 100644
--- a/tests/content/iframe_4_redirect-meta-tag.html
+++ b/tests/content/iframe_4_redirect-meta-tag.html
@@ -1,5 +1,7 @@
+<!doctype html>
 <html>
   <head>
+    <meta charset="utf-8" />
   </head>
   <body>
 
@@ -10,5 +12,5 @@
 
     <iframe src="redirect-meta-tag-01.html" />
 
-</body>
+  </body>
 </html>
diff --git a/tests/content/img_1.html b/tests/content/img_1.html
index 20f08dd..f8fe35f 100644
--- a/tests/content/img_1.html
+++ b/tests/content/img_1.html
@@ -1,5 +1,7 @@
+<!doctype html>
 <html>
 <head>
+  <meta charset="utf-8" />
 </head>
 <body>
 
@@ -12,4 +14,4 @@
 <p><a href="destination.html">same-site link</a>
 
 </body>
-</html>
\ No newline at end of file
+</html>
diff --git a/tests/content/js_link_1.html b/tests/content/js_link_1.html
index a56b038..a762478 100644
--- a/tests/content/js_link_1.html
+++ b/tests/content/js_link_1.html
@@ -1,5 +1,7 @@
+<!doctype html>
 <html>
 <head>
+<meta charset="utf-8" />
 <script>
   function addLink() {
     document.getElementById("target").innerHTML = "<a href='http://www.otherdomain.test/?test'>Link to http://www.otherdomain.test/</a>";
@@ -16,4 +18,4 @@ second.
 <div id="target"></div>
 
 </body>
-</html>
\ No newline at end of file
+</html>
diff --git a/tests/content/link_1.html b/tests/content/link_1.html
index 4707dd8..d0fde89 100644
--- a/tests/content/link_1.html
+++ b/tests/content/link_1.html
@@ -1,5 +1,7 @@
+<!doctype html>
 <html>
 <head>
+  <meta charset="utf-8" />
 </head>
 <body>
 
@@ -24,4 +26,4 @@
 </div>
 
 </body>
-</html>
\ No newline at end of file
+</html>
diff --git a/tests/content/other_origins_1.html b/tests/content/other_origins_1.html
index fe564e1..43e0c16 100644
--- a/tests/content/other_origins_1.html
+++ b/tests/content/other_origins_1.html
@@ -1,5 +1,7 @@
+<!doctype html>
 <html>
 <head>
+  <meta charset="utf-8" />
 </head>
 <body>
 
diff --git a/tests/content/popup_1.html b/tests/content/popup_1.html
index 6b7204a..ce44452 100644
--- a/tests/content/popup_1.html
+++ b/tests/content/popup_1.html
@@ -1,5 +1,7 @@
+<!doctype html>
 <html>
 <head>
+  <meta charset="utf-8" />
 </head>
 <body>
 
@@ -12,4 +14,4 @@ site.
 </script>
 
 </body>
-</html>
\ No newline at end of file
+</html>
diff --git a/tests/content/popup_2.html b/tests/content/popup_2.html
index 2fb4fe4..3c8c8d8 100644
--- a/tests/content/popup_2.html
+++ b/tests/content/popup_2.html
@@ -1,5 +1,7 @@
+<!doctype html>
 <html>
 <head>
+  <meta charset="utf-8" />
 </head>
 <body>
 
@@ -10,4 +12,4 @@
 </div>
 
 </body>
-</html>
\ No newline at end of file
+</html>
diff --git a/tests/content/prefetch_1.html b/tests/content/prefetch_1.html
index 4607e29..a6226c2 100644
--- a/tests/content/prefetch_1.html
+++ b/tests/content/prefetch_1.html
@@ -1,6 +1,8 @@
+<!doctype html>
 <html>
 <head>
-<link rel="prefetch" href="http://www.otherdomain.test/prefetched-document.html" />
+  <meta charset="utf-8" />
+  <link rel="prefetch" href="http://www.otherdomain.test/prefetched-document.html" />
 </head>
 <body>
 
diff --git a/tests/content/redirect-js-document-location-auto.html b/tests/content/redirect-js-document-location-auto.html
index 3d3fb5c..cd297d5 100644
--- a/tests/content/redirect-js-document-location-auto.html
+++ b/tests/content/redirect-js-document-location-auto.html
@@ -1,4 +1,8 @@
+<!doctype html>
 <html>
+<head>
+  <meta charset="utf-8" />
+</head>
 <body onload="document.location = 'http://www.otherdomain.test/'">
 
 <p>This only works when not loaded from a local file. That is, this
@@ -9,4 +13,4 @@
    be shown.</p>
 
 </body>
-</html>
\ No newline at end of file
+</html>
diff --git a/tests/content/redirect-js-document-location-link.html b/tests/content/redirect-js-document-location-link.html
index 1e252a2..1b3ddd7 100644
--- a/tests/content/redirect-js-document-location-link.html
+++ b/tests/content/redirect-js-document-location-link.html
@@ -1,4 +1,8 @@
+<!doctype html>
 <html>
+<head>
+  <meta charset="utf-8" />
+</head>
 <body>
 
 <p>This only works when not loaded from a local file. That is, this
@@ -11,4 +15,4 @@
 <a href="javascript:document.location = 'http://www.otherdomain.test/'">click me</a>
 
 </body>
-</html>
\ No newline at end of file
+</html>
diff --git a/tests/content/redirect-links.html b/tests/content/redirect-links.html
index abeea29..18e379c 100644
--- a/tests/content/redirect-links.html
+++ b/tests/content/redirect-links.html
@@ -1,5 +1,7 @@
+<!doctype html>
 <html>
   <head>
+    <meta charset="utf-8" />
   </head>
   <body>
 
diff --git a/tests/content/redirect-meta-tag-01-immediate.html b/tests/content/redirect-meta-tag-01-immediate.html
index e4d1ce7..4ed1841 100644
--- a/tests/content/redirect-meta-tag-01-immediate.html
+++ b/tests/content/redirect-meta-tag-01-immediate.html
@@ -1,5 +1,7 @@
+<!doctype html>
 <html>
   <head>
+    <meta charset="utf-8" />
     <meta http-equiv="refresh"
           content="0;url=http://www.otherdomain.test/destination.html?redirect-meta-tag-01%20redirected%20here." />
   </head>
diff --git a/tests/content/redirect-meta-tag-02-delayed.html b/tests/content/redirect-meta-tag-02-delayed.html
index 1f2695b..a45957a 100644
--- a/tests/content/redirect-meta-tag-02-delayed.html
+++ b/tests/content/redirect-meta-tag-02-delayed.html
@@ -1,5 +1,7 @@
+<!doctype html>
 <html>
   <head>
+    <meta charset="utf-8" />
     <meta http-equiv="refresh"
           content="2;url=http://www.otherdomain.test/destination.html?redirect-meta-tag-02%20redirected%20here." />
     <meta name="robots" content="index,follow" />
diff --git a/tests/content/redirect-meta-tag-03-multiple.html b/tests/content/redirect-meta-tag-03-multiple.html
index 22d34da..240757c 100644
--- a/tests/content/redirect-meta-tag-03-multiple.html
+++ b/tests/content/redirect-meta-tag-03-multiple.html
@@ -1,5 +1,7 @@
+<!doctype html>
 <html>
   <head>
+    <meta charset="utf-8" />
     <meta http-equiv="refresh"
           content="0;url=http://www.otherdomain.test/destination.html?redirect-meta-tag-03%20redirected%20here. Delay: 0" />
     <meta http-equiv="refresh"
diff --git a/tests/content/redirect-meta-tag-04-relative-without-slash.html b/tests/content/redirect-meta-tag-04-relative-without-slash.html
index c00676c..81773dd 100644
--- a/tests/content/redirect-meta-tag-04-relative-without-slash.html
+++ b/tests/content/redirect-meta-tag-04-relative-without-slash.html
@@ -1,5 +1,7 @@
+<!doctype html>
 <html>
   <head>
+    <meta charset="utf-8" />
     <meta http-equiv="refresh"
           content="0;url=destination.html?redirect-meta-tag-04%20redirected%20here.%20The%20refresh%20destination%20was%20a%20relative%20URL%20without%20slash" />
   </head>
diff --git a/tests/content/redirect-meta-tag-05-relative-with-slash.html b/tests/content/redirect-meta-tag-05-relative-with-slash.html
index 0bf817c..f539440 100644
--- a/tests/content/redirect-meta-tag-05-relative-with-slash.html
+++ b/tests/content/redirect-meta-tag-05-relative-with-slash.html
@@ -1,5 +1,7 @@
+<!doctype html>
 <html>
   <head>
+    <meta charset="utf-8" />
     <meta http-equiv="refresh"
           content="0;url=/destination.html?redirect-meta-tag-05%20redirected%20here.%20The%20refresh%20destination%20was%20a%20relative%20URL%20*with*%20slash" />
   </head>
diff --git a/tests/content/redirect-meta-tag-06-different-formatting.html b/tests/content/redirect-meta-tag-06-different-formatting.html
index c86caf4..37721a7 100644
--- a/tests/content/redirect-meta-tag-06-different-formatting.html
+++ b/tests/content/redirect-meta-tag-06-different-formatting.html
@@ -1,5 +1,7 @@
+<!doctype html>
 <html>
   <head>
+    <meta charset="utf-8" />
     <meta http-equiv="refresh"
           content=" 0   ;  url = /destination.html?redirect-meta-tag-06%20redirected%20here.%20The%20refresh%20destination%20was%20a%20relative%20URL%20with%20slash%20and%20formatting%20of%20thecontent%20attribute.     " />
   </head>
diff --git a/tests/content/redirect-meta-tag-07-different-formatting-delayed.html b/tests/content/redirect-meta-tag-07-different-formatting-delayed.html
index 9f43abc..01c0a5e 100644
--- a/tests/content/redirect-meta-tag-07-different-formatting-delayed.html
+++ b/tests/content/redirect-meta-tag-07-different-formatting-delayed.html
@@ -1,5 +1,7 @@
+<!doctype html>
 <html>
   <head>
+    <meta charset="utf-8" />
     <meta http-equiv="refresh"
           content=" 2   ;  url = /destination.html?redirect-meta-tag-07%20redirected%20here.%20The%20refresh%20destination%20was%20a%20relative%20URL%20with%20slash.%20Different%20formatting%20of%20the%20content%20attribute.%20Delayed.     "/>
   </head>
diff --git a/tests/content/redirect-meta-tag-08.html b/tests/content/redirect-meta-tag-08.html
index 12b004a..390d71e 100644
--- a/tests/content/redirect-meta-tag-08.html
+++ b/tests/content/redirect-meta-tag-08.html
@@ -1,5 +1,7 @@
+<!doctype html>
 <html>
   <head>
+    <meta charset="utf-8" />
     <meta http-equiv="refresh"
           content="0; url='http://www.otherdomain.test/destination.html?redirect-meta-tag-08%20redirected%20here.%20The%20refresh%20URL%20was%20enclosed%20in%20%26amp%3B%2339%3B%20instead%20of%20quotes.'">
   </head>
diff --git a/tests/content/redirect-meta-tag-09-relative.html b/tests/content/redirect-meta-tag-09-relative.html
index 94b7785..530312e 100644
--- a/tests/content/redirect-meta-tag-09-relative.html
+++ b/tests/content/redirect-meta-tag-09-relative.html
@@ -1,5 +1,7 @@
+<!doctype html>
 <html>
   <head>
+    <meta charset="utf-8" />
     <meta http-equiv="refresh" content="0; url=subdirectory/" />
   </head>
   <body>
diff --git a/tests/content/xhr_1.html b/tests/content/xhr_1.html
index 498273b..027282d 100644
--- a/tests/content/xhr_1.html
+++ b/tests/content/xhr_1.html
@@ -1,5 +1,7 @@
+<!doctype html>
 <html>
 <head>
+  <meta charset="utf-8" />
 </head>
 <body>
 
@@ -35,4 +37,4 @@
 
 
 </body>
-</html>
\ No newline at end of file
+</html>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git



More information about the Pkg-mozext-commits mailing list