mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-02-15 17:57:33 +03:00
* tree.c include/libxml/tree.h: modified the existing APIs to handle XHTML1 serialization rules automatically, also add xmlIsXHTML() to libxml2 API. Some tweaking to make sure libxslt serialization uses it when needed without changing the library API. * test/xhtml1 result/noent/xhtml1 result/valid/xhtml1.xhtml result/xhtml1: added a new test specifically for xhtml1 output and updated the result of one XHTML1 test Daniel
35 lines
800 B
XML
35 lines
800 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<!-- 3.1.1 3/ -->
|
|
<html xml:lang="en" lang="en">
|
|
<head>
|
|
<title>Virtual Library</title>
|
|
</head>
|
|
<!-- 4.8 -->
|
|
<script type="text/javascript">
|
|
... unescaped script content ...
|
|
</script>
|
|
<body>
|
|
<p>Moved to <a href="http://example.org/">example.org</a>.</p>
|
|
</body>
|
|
<!-- C2 -->
|
|
<img src="foo.gif" alt="foo"/>
|
|
<!-- C3 -->
|
|
<p/>
|
|
<!-- C7 -->
|
|
<p lang="fr">coucou</p>
|
|
<p xml:lang="fr">salut</p>
|
|
<!-- C8 -->
|
|
<p name="fragid">test</p>
|
|
<!-- 4.5 -->
|
|
<dl compact="">
|
|
<dt>Internet Engineering Task Force</dt>
|
|
<dd>An organization which establishes technical standards for the Internet</dd>
|
|
</dl>
|
|
|
|
</html>
|
|
|
|
|