Use HTML5 doctype and set lang attr everywhere

This commit is contained in:
Marcus Bointon 2019-10-16 10:09:01 +02:00
parent b8c44fca4e
commit 3649f0697e
6 changed files with 11 additions and 10 deletions

View File

@ -1,5 +1,5 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE html>
<html> <html lang="en">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>PHPMailer Test</title> <title>PHPMailer Test</title>

View File

@ -1,5 +1,5 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE html>
<html> <html lang="en">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>PHPMailer Test</title> <title>PHPMailer Test</title>

View File

@ -34,7 +34,7 @@ if (array_key_exists('userfile', $_FILES)) {
} }
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html lang="en">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>PHPMailer Upload</title> <title>PHPMailer Upload</title>

View File

@ -33,7 +33,7 @@ if (array_key_exists('userfile', $_FILES)) {
} }
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html lang="en">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>PHPMailer Upload</title> <title>PHPMailer Upload</title>

View File

@ -72,7 +72,7 @@ if (array_key_exists('to', $_POST)) {
} }
} ?> } ?>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html lang="en">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>PHPMailer Contact Form</title> <title>PHPMailer Contact Form</title>

View File

@ -1094,7 +1094,8 @@ EOT;
$this->Mail->CharSet = 'UTF-8'; $this->Mail->CharSet = 'UTF-8';
$this->Mail->Body = <<<'EOT' $this->Mail->Body = <<<'EOT'
<html> <!DOCTYPE html>
<html lang="en">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>HTML email test</title> <title>HTML email test</title>
@ -1304,8 +1305,8 @@ EOT;
$this->buildBody(); $this->buildBody();
$this->assertTrue($this->Mail->send(), $this->Mail->ErrorInfo); $this->assertTrue($this->Mail->send(), $this->Mail->ErrorInfo);
$this->Mail->clearAttachments(); $this->Mail->clearAttachments();
$this->Mail->msgHTML('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> $this->Mail->msgHTML('<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"> <html lang="en">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>E-Mail Inline Image Test</title> <title>E-Mail Inline Image Test</title>