W3C home > Mailing lists > Public > www-validator@w3.org > May 2018

How tags are reported

From: Mike McCutcheon <mike@around-the-world.co.uk>
Date: Mon, 28 May 2018 19:16:34 +0000
To: <www-validator@w3.org>
Message-ID: <000601d3f668$b1cbee00$1563ca00$@around-the-world.co.uk>
Hello.

 

Apologies if this seems a stupid question but I'm not a professional
programmer ..

 

I am wondering whether the validator is letting me off lightly ...

 

I store formatted emails in a database. See attached screenshot of an email
in the database.

 

A PHP script selects an email and creates a preview of it in HTML. See
attached screenshot of the preview.

 

I have copied the resultant HTML of the preview below.

 

Your (excellent) validator is now reporting that there are no problems,
which in theory is good news.

 

However I just want to check that it's OK that some of the HTML code I
generate shows tags as <tr><td> etc but some of the tags are shows as &lt;
&gt; 

 

This is presumably because my php code uses the htmlspecialchars() function
to convert the predefined characters "<" and ">" in the stored email into
HTML entities.

 

Is that OK or should the validator report errors to me ? For example, is the
validator only saying the HTML is error-free because it doesn't recognize
some of it as HTML because the tags have been converted ?

 

Many thanks.

 

Best regards,

Mike McCutcheon

+44 7910 927 992

 

 

<!DOCTYPE HTML>

<html lang='en'>

<head>

<meta http-equiv='content-type' content='text/html; charset=utf-8'>

<title>Test email preview</title>

<link rel='shortcut icon' href='http://around-the-world.co.uk/atwicon.ico'
type='image/ico'></head>

<body onload='document.forms.prompt.start_adhoc.focus()'>

<h3 style='font-family: Arial, Helvetica, sans-serif; font-size: 14px;'>Test
email preview</h3><form name='prompt' method='post'
action='inflightemail_send.php'><table style='width: 600px; font-family:
Arial, Helvetica, sans-serif; font-size: 14px;'><tr><th
style='width:auto;white-space:nowrap'></th><th
style='width:70%;'></th></tr><tr><td colspan='2'>Email code:
1-1&nbsp;&nbsp;<a
href='../email/emailsloglist_list.php?date_from=&amp;date_to=&amp;sender=&am
p;company=&amp;al_id=&amp;content_id=&amp;seq=d&amp;user=Job+Heimerikx'>Chec
k emails log</a>&nbsp;&nbsp;<input type='submit' name='submit' value='Test
email send' /></td></tr><tr><td colspan='2'>&nbsp;</td></tr><tr><td
colspan='2'>To: <textarea name='emails' rows='1' cols='80'
style='font-family: Arial, Helvetica, sans-serif; font-size:
14px;'>job.heimerikx@airfi.aero</textarea></td></tr><tr><td
colspan='2'>&nbsp;</td></tr><tr><td colspan='2'>Subject: Responsibility for
inflight entertainment<input type='hidden' name='subject' id='subject'
value='Responsibility for inflight entertainment' /></td></tr><tr><td
colspan='2'>&nbsp;</td></tr><tr style='margin:0px 0px;'><td colspan='2'><img
src='http://www.around-the-world.co.uk/inflight/graphics/dests_service_email
..gif' width='370' height='30' style='margin:0px 0px; border-style:none;
color:#0000FF; font-family: Helvetica, arial, sans-serif; font-size: 16px;
font-weight: bold; vertical-align: middle' alt='Video from Around The World'
/></td></tr><tr><td colspan='2'>&nbsp;</td></tr><tr><td
colspan='2'><textarea name='greets' rows='1' cols='80' style='font-family:
Arial, Helvetica, sans-serif; font-size: 14px;'>Hello
Job.</textarea></td></tr><tr><td colspan='2'>&nbsp;</td></tr><tr><td
colspan='2'><textarea name='start_adhoc' rows='3' cols='80'
style='font-family: Arial, Helvetica, sans-serif; font-size:
14px;'></textarea></td></tr><tr><td colspan='2'>&nbsp;</td></tr><tr><td
colspan='2'>In the next few days I plan to send you Around The World&#039;s
latest email about newly-acquired destination videos which are relevant to
the airlines you are responsible for, so first I would like to give you the
opportunity to control what emails you receive from us, in line with the
European GDPR General Data Protection Regulation.<br />

<br />

On average we send an email about destination videos every 3 months. We will
also soon resume sending you occasional details about other non-movie video
content.<br />

<br />

To ensure that our emails are 100% relevant, we keep the following
information about your airline responsibilities: your name; your email
address; the airlines you are responsible for, namely:<br /><br
/></td></tr><tr><td colspan='2'><textarea name='middle_adhoc' rows='2'
cols='80' style='font-family: Arial, Helvetica, sans-serif; font-size:
14px;'></textarea></td></tr><tr><td colspan='2'>&nbsp;</td></tr><tr><td
colspan='2'>We never provide this information to any other company.<br />

<br />

Please reply to this email if:<br />

- you no longer need or want these occasional emails (and ideally please say
why)<br />

- you want to correct the above information<br />

- you want colleagues to receive the information as well or instead<br />

- you are now responsible for additional airlines.</td></tr><tr><td
colspan='2'>&nbsp;</td></tr><tr><td colspan='2'><textarea
name='finish_adhoc' rows='2' cols='80' style='font-family: Arial, Helvetica,
sans-serif; font-size: 14px;'></textarea></td></tr><tr><td
colspan='2'>&nbsp;</td></tr><tr><td colspan='2'><textarea name='farewell'
rows='7' cols='80' style='font-family: Arial, Helvetica, sans-serif;
font-size: 14px;'>Best regards,

Mike McCutcheon

Around The World Ltd

5 Tideway Yard

125 Mortlake High St

London SW14 8SN

Tel/fax: +44 (0)7910 927 992

www.around-the-world.co.uk</textarea></td></tr><tr><td
colspan='2'>&nbsp;</td></tr><tr><td colspan='2'><input type='submit'
name='submit' value='Test email send' /></td></tr><tr><td colspan='2'><input
type='hidden' name='sender_id' id='sender_id' value='mm' /><input
type='hidden' name='sender_name' id='sender_name' value='Mike McCutcheon'
/><input type='hidden' name='sender_email' id='sender_email'
value='mike@around-the-world.co.uk' /><input type='hidden'
name='sender_password' id='sender_password' value='chilli37' /><input
type='hidden' name='test_recipient_email' id='test_recipient_email'
value='mike@around-the-world.co.uk' /><input type='hidden' name='live'
id='live' value='0' /><input type='hidden' name='dest' id='dest' value='0'
/><input type='hidden' name='email_code' id='email_code' value='1-1'
/><input type='hidden' name='email_id' id='email_id' value='gdpr progs'
/><input type='hidden' name='graphic_src' id='graphic_src'
value='http://www.around-the-world.co.uk/inflight/graphics/dests_service_ema
il.gif' /><input type='hidden' name='acquired' id='acquired' value=''
/><input type='hidden' name='middle_html' id='middle_html'
value='&lt;tr&gt;&lt;td colspan=&#039;2&#039;&gt;In the next few days I plan
to send you Around The World&amp;#039;s latest email about newly-acquired
destination videos which are relevant to the airlines you are responsible
for, so first I would like to give you the opportunity to control what
emails you receive from us, in line with the European GDPR General Data
Protection Regulation.&lt;br /&gt;

&lt;br /&gt;

On average we send an email about destination videos every 3 months. We will
also soon resume sending you occasional details about other non-movie video
content.&lt;br /&gt;

&lt;br /&gt;

To ensure that our emails are 100% relevant, we keep the following
information about your airline responsibilities: your name; your email
address; the airlines you are responsible for, namely:&lt;br /&gt;&lt;br
/&gt;&lt;/td&gt;&lt;/tr&gt;' /><input type='hidden' name='middle_text'
id='middle_text' value='In the next few days I plan to send you Around The
World&#039;s latest email about newly-acquired destination videos which are
relevant to the airlines you are responsible for, so first I would like to
give you the opportunity to control what emails you receive from us, in line
with the European GDPR General Data Protection Regulation.

 

On average we send an email about destination videos every 3 months. We will
also soon resume sending you occasional details about other non-movie video
content.

 

To ensure that our emails are 100% relevant, we keep the following
information about your airline responsibilities: your name; your email
address; the airlines you are responsible for, namely:

 

' /><input type='hidden' name='summary_html' id='summary_html'
value='&lt;tr&gt;&lt;td colspan=&#039;2&#039;&gt;We never provide this
information to any other company.&lt;br /&gt;

&lt;br /&gt;

Please reply to this email if:&lt;br /&gt;

- you no longer need or want these occasional emails (and ideally please say
why)&lt;br /&gt;

- you want to correct the above information&lt;br /&gt;

- you want colleagues to receive the information as well or instead&lt;br
/&gt;

- you are now responsible for additional airlines.&lt;/td&gt;&lt;/tr&gt;'
/><input type='hidden' name='summary_text' id='summary_text' value='We never
provide this information to any other company.

 

Please reply to this email if:

- you no longer need or want these occasional emails (and ideally please say
why)

- you want to correct the above information

- you want colleagues to receive the information as well or instead

- you are now responsible for additional airlines.' /><input type='hidden'
name='housekeeping_html' id='housekeeping_html' value='&lt;tr&gt;&lt;td
colspan=&apos;2&apos;&gt;On any size screen you can screen all relevant ATW
titles - including destination videos - and see details of our point of
interest service for moving maps if you enter an airline grouping of airfi
or an airline code &lt;a
href=&apos;http://www.around-the-world.co.uk/menu&apos;&gt;
here&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;

                                &lt;tr&gt;&lt;td
colspan=&apos;2&apos;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td
colspan=&apos;2&apos;&gt;On a computer screen or tablet you can list and
screen all relevant ATW destination videos if you enter an airline grouping
of airfi or an airline code &lt;a
href=&apos;http://around-the-world.co.uk/menu/destinationvideos.php&apos;&gt
; here&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;

                                &lt;tr&gt;&lt;td
colspan=&apos;2&apos;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td
colspan=&apos;2&apos;&gt;If IFE programming or airline account
responsibilities have changed at AirFi, please tell
me.&lt;/td&gt;&lt;/tr&gt;' /><input type='hidden' name='housekeeping_text'
id='housekeeping_text' value='On any size screen you can screen all ATW
titles - including destination videos - and see details of our point of
interest service for moving maps if you enter an airline grouping of airfi
or an airline code here:

http://www.around-the-world.co.uk/menu

 

On a computer screen or tablet you can list and screen all relevant ATW
destination videos if you enter an airline grouping of airfi or an airline
code here: http://around-the-world.co.uk/menu/destinationvideos.php

 

If IFE programming or airline account responsibilities have changed at
AirFi, please tell me.

 

The links are easier to use if you can select an option to view emails
formatted in HTML instead of in plain text.' /><input type='hidden'
name='company' id='company' value='AirFi' /><input type='hidden'
name='users' id='users' value='Job Heimerikx' /><input type='hidden'
name='airlines' id='airlines' value='air' /><input type='hidden'
name='contents' id='contents' value=''
/></td></tr></table></form></body></html>


email_in_database.jpg
(image/jpeg attachment: email_in_database.jpg)

email_preview.jpg
(image/jpeg attachment: email_preview.jpg)

Received on Tuesday, 29 May 2018 15:11:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:00:04 UTC