HTML5 in WYSIWYG and Tidy
(I'm running 6.8.)
I start with the following document:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8"/>
<title>a title</title>
<link href="/design/styles.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<header>abc</header>
</body>
</html>
It validates as HTML5.
I create a template:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8"/>
<title><system-page-title/></title>
<link href="/design/styles.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<system-region name="DEFAULT"/>
</body>
</html>
I put the
<header>abc</header>
into the HTML window of the WYSIWYG (not a typical case, but just testing)
If I submit and come back into the editor, I see this in the WYSIWYG
<title></title>
abc
And this causes the resulting file to be this:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8"/>
<title>a title</title>
<link href="../design/styles.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<html>
<head>
<title></title>
</head>
<body>
abc
</body>
</html>
This happens when I add real header tags (h1, e.g.) inside the header tags and even if the header tag is nested in an article tag. What's happening and how to avoid?
Thanks,
Sara
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Bradley Wagner on 25 May, 2012 06:33 PM
Sara, I'm going to go ahead and close this in favor of this one
Bradley Wagner closed this discussion on 25 May, 2012 06:33 PM.
harlenweb re-opened this discussion on 25 May, 2012 06:43 PM
3 Posted by harlenweb on 25 May, 2012 06:43 PM
Sure, Bradley.
--
Sara Haradhvala
Manager, Harlen Web Consulting LLC
[email blocked]
Tim closed this discussion on 25 May, 2012 06:45 PM.