After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 68756 - non-closure of empty paragraph tag <P>
non-closure of empty paragraph tag <P>
Status: VERIFIED NOTABUG
Product: libxslt
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
Daniel Veillard
Depends on:
Blocks:
 
 
Reported: 2002-01-15 12:04 UTC by jonathan.zaid
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description jonathan.zaid 2002-01-15 12:04:34 UTC
Perhaps this isn't a bug per se, but behaviour is different than other 
XSLT engines.

In the below, although not required, the expected output would be:
<P></P>
<P>para</P>

Instead libxslt returns:
<P>
<P>para</P>
without the closure of the empty <P>.

Thanks again Daniel!
Jon 
-------------------------------
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="/">
<P></P>
<P>para</P>
</xsl:template>
</xsl:stylesheet>
Comment 1 Daniel Veillard 2002-01-15 17:57:44 UTC
It's HTML specific and not a bug. The P autocloses itself
according to the HTML SGML DTDs.

Daniel