Merge pull request #1748 from mrego/xht-extension

Add support for .xht extension which is used in some XHTML files
This commit is contained in:
Arfon Smith
2014-11-21 12:48:58 -06:00
2 changed files with 18 additions and 0 deletions

View File

@@ -1031,6 +1031,7 @@ HTML:
- .htm
- .st
- .xhtml
- .xht
HTML+Django:
type: markup

17
samples/HTML/example.xht Normal file
View File

@@ -0,0 +1,17 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>This is a XHTML sample file</title>
<style type="text/css"><![CDATA[
#example {
background-color: yellow;
}
]]></style>
</head>
<body>
<div id="example">
Just a simple <strong>XHTML</strong> test page.
</div>
</body>
</html>