Browse Source

fill in some missing doctypes; use short doctype where it wasn't

Andrew Dolgov 7 months ago
parent
commit
54c1b5c611
10 changed files with 17 additions and 9 deletions
  1. 1 0
      classes/feeds.php
  2. 4 1
      classes/handler/public.php
  3. 1 0
      include/login_form.php
  4. 1 0
      include/sanity_check.php
  5. 1 2
      index.php
  6. 1 1
      install/index.php
  7. 3 1
      plugins/auth_internal/init.php
  8. 1 2
      prefs.php
  9. 1 1
      register.php
  10. 3 1
      update.php

+ 1 - 0
classes/feeds.php

@@ -830,6 +830,7 @@ class Feeds extends Handler_Protected {
 		$rehash_checked = isset($_REQUEST["force_rehash"]) ? "checked" : "";
 
 		?>
+		<!DOCTYPE html>
 		<html>
 		<head>
 			<?php echo stylesheet_tag("css/default.css") ?>

+ 4 - 1
classes/handler/public.php

@@ -525,6 +525,7 @@ class Handler_Public extends Handler {
 
 		header('Content-Type: text/html; charset=utf-8');
 		?>
+		<!DOCTYPE html>
 		<html>
 		<head>
 			<title><?php echo __("Share with Tiny Tiny RSS") ?> ?></title>
@@ -742,6 +743,7 @@ class Handler_Public extends Handler {
 
 			header('Content-Type: text/html; charset=utf-8');
 			?>
+			<!DOCTYPE html>
 			<html>
 			<head>
 				<title>Tiny Tiny RSS</title>
@@ -866,7 +868,7 @@ class Handler_Public extends Handler {
 
 		header('Content-Type: text/html; charset=utf-8');
 		?>
-
+		<!DOCTYPE html>
 		<html>
 		<head>
 			<title>Tiny Tiny RSS</title>
@@ -1071,6 +1073,7 @@ class Handler_Public extends Handler {
 		}
 
 		?>
+		<!DOCTYPE html>
 		<html>
 			<head>
 			<title>Database Updater</title>

+ 1 - 0
include/login_form.php

@@ -1,4 +1,5 @@
 <?php startup_gettext(); ?>
+<!DOCTYPE html>
 <html>
 <head>
 	<title>Tiny Tiny RSS : Login</title>

+ 1 - 0
include/sanity_check.php

@@ -176,6 +176,7 @@
 		}
 
 		if (count($errors) > 0 && $_SERVER['REQUEST_URI']) { ?>
+			<!DOCTYPE html>
 			<html>
 			<head>
 			<title>Startup failed</title>

+ 1 - 2
index.php

@@ -34,8 +34,7 @@
 	header('Content-Type: text/html; charset=utf-8');
 
 ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!DOCTYPE html>
 <html>
 <head>
 	<title>Tiny Tiny RSS</title>

+ 1 - 1
install/index.php

@@ -22,7 +22,7 @@
 		return "<script type=\"text/javascript\" charset=\"utf-8\" src=\"$filename?$timestamp\"></script>\n";
 	}
 ?>
-
+<!DOCTYPE html>
 <html>
 <head>
 	<title>Tiny Tiny RSS - Installer</title>

+ 3 - 1
plugins/auth_internal/init.php

@@ -48,7 +48,9 @@ class Auth_Internal extends Plugin implements IAuthModule {
 							}
 						} else {
 							$return = urlencode($_REQUEST["return"]);
-							?><html>
+							?>
+							<!DOCTYPE html>
+							<html>
 								<head>
 									<title>Tiny Tiny RSS</title>
 									<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

+ 1 - 2
prefs.php

@@ -26,8 +26,7 @@
 
 	header('Content-Type: text/html; charset=utf-8');
 ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!DOCTYPE html>
 <html>
 <head>
 	<title>Tiny Tiny RSS : <?php echo __("Preferences") ?></title>

+ 1 - 1
register.php

@@ -89,7 +89,7 @@
 		return;
 	}
 ?>
-
+<!DOCTYPE html>
 <html>
 <head>
 <title>Create new account</title>

+ 3 - 1
update.php

@@ -56,7 +56,9 @@
 	}
 
 	if (count($options) == 0 && !defined('STDIN')) {
-		?> <html>
+		?>
+		<!DOCTYPE html>
+		<html>
 		<head>
 		<title>Tiny Tiny RSS data update script.</title>
 		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">