Menu

#7 why are META tags not closed

v1.0 (example)
open
nobody
None
5
2015-08-04
2015-08-04
Ronny AERTS
No

I have an html (http://www.grasoft.be) which I (as example) would like to convert to xml. The first lines of the html are:
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
And they are converted as:
<HTML>

<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">

<META content="en-us" http-equiv="Content-Language">

<META content="text/html; charset=windows-1252" http-equiv="Content-Type">

<META content="Microsoft FrontPage 4.0" name="GENERATOR">
The META tags are converted to uppercase which ok for me but they are not closed and this is not what I expected. Can you please indicate why these tags are nog closed?

The conversion logs:
[Warning] :-1:-1: No character encoding indicator at beginning of document.
[Error] :4:27: Missing attribute name.
[Error] :6:75: Missing attribute name.
[Error] :67:32: Missing attribute name.
[Error] :211:103: Missing attribute name.
[Error] :212:17: Missing attribute name.
[Error] :212:108: Missing attribute name.
[Error] :213:16: Missing attribute name.
[Error] :213:75: Missing attribute name.
[Error] :359:71: Missing whitespace before attribute "defer".
[Warning] :363:1: Element <BODY> not closed properly.
[Warning] :363:1: Element <HTML> not closed properly.

kind regards,
Ronny Aerts

1 Attachments

Discussion


Log in to post a comment.