]> gitweb.factorcode.org Git - factor.git/commitdiff
add DOCTYPE html in most places.
authorJon Harper <jon.harper87@gmail.com>
Thu, 5 Jan 2017 16:14:33 +0000 (17:14 +0100)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 5 Jan 2017 17:03:46 +0000 (09:03 -0800)
4ef4235 started it. This is also good for html emails like in
extra/webapps/mason/backend/watchdog/watchdog.factor .

I just grepped for "<html>".

23 files changed:
basis/furnace/recaptcha/example/example.xml
basis/furnace/recaptcha/recaptcha.xml
basis/html/components/components-tests.factor
basis/html/templates/chloe/chloe-tests.factor
basis/html/templates/chloe/test/test3.xml
basis/html/templates/fhtml/test/example.fhtml
basis/html/templates/fhtml/test/example.html
basis/http/http-tests.factor
basis/http/server/responses/responses.factor
basis/http/test/foo.html
basis/lists/lazy/old-doc.html
basis/xml/writer/writer-docs.factor
basis/xmode/code2html/code2html.factor
extra/codebook/codebook.factor
extra/html/parser/analyzer/analyzer-tests.factor
extra/mason/report/report.factor
extra/parser-combinators/parser-combinators.html
extra/webapps/imagebin/upload-image.xml
extra/webapps/imagebin/uploaded-image.xml
extra/webapps/mason/backend/watchdog/watchdog.factor
extra/webapps/site-watcher/common/site-watcher.xml
unmaintained/tangle/resources/weave.html
unmaintained/webapps/numbers/numbers.factor

index 2553b332efbdeab1fd371d8fbaa67c9392cef373..38ac6019e58e18200b7da19eca501e08f7e84c90 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version='1.0' ?>
+<!DOCTYPE html>
 <t:chloe xmlns:t="http://factorcode.org/chloe/1.0">
 <html><body><t:form t:action=""><t:recaptcha/></t:form></body></html>
 </t:chloe>
index 6cbf79531087d4cb7c79c987e60f13259b0f2057..2aead0a5925d995f038357c7e9021e04e3cbcb58 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version='1.0' ?>
+<!DOCTYPE html>
 <t:chloe xmlns:t="http://factorcode.org/chloe/1.0">
 <html>
        <body><t:recaptcha/>
index 80409fbcd513f9be03562cb8484ac6eb483985f0..d8e81b78a707839668c7fc8d61ccea2b49ea6eac 100644 (file)
@@ -145,10 +145,10 @@ M: link-test link-href drop "http://www.apple.com/foo&bar" ;
 ] unit-test
 
 { } [
-    "<html>arbitrary <b>markup</b> for the win!</html>" "html" set-value
+    "<!DOCTYPE html><html>arbitrary <b>markup</b> for the win!</html>" "html" set-value
 ] unit-test
 
-{ "<html>arbitrary <b>markup</b> for the win!</html>" } [
+{ "<!DOCTYPE html><html>arbitrary <b>markup</b> for the win!</html>" } [
     [ "html" html render ] with-string-writer
 ] unit-test
 
index b9144f081508a92993be8f63e1fab282b4798be1..9128eef6b7677d783013d581cb24c2f59f749b3f 100644 (file)
@@ -32,7 +32,7 @@ IN: html.templates.chloe.tests
     ] with-scope
 ] unit-test
 
-{ "<html><head><title>Hello world</title></head><body>Blah blah</body></html>" } [
+{ "<!DOCTYPE html><html><head><title>Hello world</title></head><body>Blah blah</body></html>" } [
     [
         [
             "test2" test-template call-template
index 845dd356c9cfc79f65805e2897342d806b69b506..5c6c730860ce027491e585742c3b1dcf7b469ae5 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version='1.0' ?>
-
+<!DOCTYPE html>
 <t:chloe xmlns:t="http://factorcode.org/chloe/1.0">
        <html>
                <head>
index 211f44af9a68c0171ddfc02f5b16d1a2d5d8dbcb..f737f6d160e543f492e4885c41a0b811729d997c 100644 (file)
@@ -1,5 +1,5 @@
 <% USING: math ; %>
-
+<!DOCTYPE html>
 <html>
     <head><title>Simple Embedded Factor Example</title></head>
     <body>
index 33829bf84c4924fcf8c40bec6d0587b7a573119b..a65c78f7d08a6f37d75a2cdf39d8b10dacd4bd1f 100644 (file)
@@ -1,5 +1,4 @@
-
-
+<!DOCTYPE html>
 <html>
     <head><title>Simple Embedded Factor Example</title></head>
     <body>
index 444edc3157091eae48393c130096a8e2167b3e4e..fe70a00e399d27ee5865e52611123f14e9980807 100644 (file)
@@ -345,7 +345,7 @@ SYMBOL: a
 <dispatcher>
     <action>
         [ a get-global "a" set-value ] >>init
-        [ [ "<html>" write "a" <field> render "</html>" write ] "text/html" <content> ] >>display
+        [ [ "<!DOCTYPE html><html>" write "a" <field> render "</html>" write ] "text/html" <content> ] >>display
         [ { { "a" [ v-integer ] } } validate-params ] >>validate
         [ "a" value a set-global URL" " <redirect> ] >>submit
     <conversations>
index b4cfdbfe60ba001815900437705fb0ca224e89d0..5aa59c81f5f8a9b3a406c51fb76ff485e2bd1879 100644 (file)
@@ -20,6 +20,7 @@ IN: http.server.responses
 
 : trivial-response-body ( code message -- )
     <XML
+        <!DOCTYPE html>
         <html>
             <body>
                 <h1><-> <-></h1>
index 263898685338e81abed4d0166944c21edb9c9bfc..78c814e29c2a03c89edf8432c3ca2a359cceec11 100644 (file)
@@ -1 +1 @@
-<html><head><title>Hello</title></head><body>HTTPd test</body></html>
+<!DOCTYPE html><html><head><title>Hello</title></head><body>HTTPd test</body></html>
index c01ca2eeae0eb70b5949f1ae24a417b71200632c..d4b16af1f8e0d5f11916cb3bec18496e1a86f574 100644 (file)
@@ -1,3 +1,4 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>Lazy Evaluation</title>
index f7f9d30402b0b44f4987317c63c8adf53e7a4224..8fb155df4042dcb09970d6e3cd5918a371d5e062 100644 (file)
@@ -56,10 +56,11 @@ HELP: indenter
 HELP: sensitive-tags
 { $var-description "Contains a sequence of " { $link name } "s where whitespace should be considered significant for prettyprinting purposes. The sequence can contain " { $link string } "s in place of names. For example, to preserve whitespace inside a " { $snippet "pre" } " tag:" }
 { $example "USING: xml.syntax xml.writer namespaces ;
-[XML <html> <head>   <title> something</title></head><body><pre>bing
+[XML <!DOCTYPE html> <html> <head>   <title> something</title></head><body><pre>bing
 bang
    bong</pre></body></html> XML] { \"pre\" } sensitive-tags [ pprint-xml ] with-variable"
 "
+<!DOCTYPE html>
 <html>
   <head>
     <title>
index a4c2094da77fe0e21f9e1175ab93e1746abb5ca1..6938f40bebae8b90bad222e35aae061926460636 100644 (file)
@@ -28,7 +28,7 @@ IN: xmode.code2html
     [ "" ] [ path over first find-mode htmlize-lines ]
     if-empty :> input
     default-stylesheet :> stylesheet
-    <XML <html>
+    <XML <!DOCTYPE html> <html>
         <head>
             <-stylesheet->
             <title><-path-></title>
index 4f25ae752052ef92326736e2fa274e4c0636d233..f0c48124e8a6043a130177192e3e569470687d1b 100644 (file)
@@ -96,7 +96,7 @@ TUPLE: code-file
     file mode>> load-mode :> rules
     f lines [| l i | l rules tokenize-line i 1 + line#len line#>string htmlize-tokens ]
     map-index concat nip :> html-lines
-    <XML <html>
+    <XML <!DOCTYPE html> <html>
         <head>
             <title><-name-></title>
             <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
@@ -116,7 +116,7 @@ TUPLE: code-file
     dir [
         files toc-list :> toc
 
-        <XML <html>
+        <XML <!DOCTYPE html> <html>
             <head>
                 <title><-name-></title>
                 <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
index 25016cd996039daa197de080a40c31c124d5b9c3..0c640354fd657db1af4b9c538fc6e52350c8a4aa 100644 (file)
@@ -32,7 +32,7 @@ IN: html.parser.analyzer.tests
     T{ tag f text f "foo" f }
 }
 } [
-    "<html><head><title>foo</title></head></html>" parse-html
+    "<!DOCTYPE html><html><head><title>foo</title></head></html>" parse-html
     "title" find-between-first
 ] unit-test
 
index 0ee80f0c214edded8c90ca8695dc975a84aa6968..14978ebf9c15f28ca41dd2ae29d78e404420a921 100644 (file)
@@ -32,7 +32,7 @@ IN: mason.report
     '[
         common-report
         _ call( -- xml )
-        [XML <html><body><-><-></body></html> XML]
+        [XML <!DOCTYPE html><html><body><-><-></body></html> XML]
         write-xml
     ] with-file-writer ; inline
 
index 33aeaba90215a3a6fbe69736b3fa6b43ac8925e9..6d449130d0c1efda5e86c29ae6e708f722f86fcd 100644 (file)
@@ -1,3 +1,4 @@
+<!DOCTYPE html>
 <html>
   <head>
     <title>Parser Combinators</title>
index ed6704fc939e5091c56181db548361a3e0f1932e..e86bc1afbb46d45c62a75be2e1977d5cd9045580 100644 (file)
@@ -1,4 +1,4 @@
-<?xml version='1.0' ?>
+<!DOCTYPE html>
 <html>
 <head><title>Upload</title></head>
 <body>
index 79dfabc924c27dee43c5232b5cdf49f950b17276..7f735efca31a9a03ca6a38971cbd024843d957c1 100644 (file)
@@ -1,4 +1,4 @@
-<?xml version='1.0' ?>
+<!DOCTYPE html>
 <html>
 <head><title>Uploaded</title></head>
 <body>
index 799c4a4f35c9fc59536a2899ddb3f7a3279c6798..c9613acb022bcf41f930d7e12abda6b8445654fd 100644 (file)
@@ -7,6 +7,7 @@ IN: webapps.mason.backend.watchdog
 : crashed-builder-body ( crashed-builders -- string content-type )
     [ os/cpu [XML <li><-></li> XML] ] map
     <XML
+        <!DOCTYPE html>
         <html>
             <body>
                 <p>Machines which are not sending heartbeats:</p>
index 5b2b129e27d307550227304120e9a9bfd77bab5c..e06794def2b93d8b21cfcc9fd7ff518d417fbbe3 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version='1.0' ?>
-
+<!DOCTYPE html>
 <t:chloe xmlns:t="http://factorcode.org/chloe/1.0">
 
 <html>
index 6f9296e31f6f8af2aebdf3a6614ef19b8846b07a..570a3fcd4d602b3ce08b5259b735a90fff909233 100644 (file)
@@ -1,3 +1,4 @@
+<!DOCTYPE html>
 <html>
     <head>
         <script type="text/javascript" src="jquery-1.2.3.min.js"></script>
index 5f0a1911ae1dd42639fd766597be3e1678467612..d141ad1d832e335ef01db263446733a68606ca4f 100644 (file)
@@ -40,6 +40,7 @@ IN: webapps.numbers
   ! Display the string in a web page.
   [
     swap dup
+    "<!DOCTYPE html>" print
     <html>
       <head> <title> write </title> </head>
       <body>
@@ -51,6 +52,7 @@ IN: webapps.numbers
 
 : read-number ( -- )
   [
+    "<!DOCTYPE html>" print
     <html>
       <head> <title> "Enter a number" write </title> </head>
       <body>