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 322870 - XHTML serialization for XHTML 1.1
XHTML serialization for XHTML 1.1
Status: RESOLVED NOTABUG
Product: libxslt
Classification: Platform
Component: general
1.1.15
Other All
: Normal enhancement
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2005-11-30 18:07 UTC by Nick Wellnhofer
Modified: 2012-11-03 15:58 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Proposed patch (2.72 KB, patch)
2006-01-14 16:38 UTC, Nick Wellnhofer
needs-work Details | Review

Description Nick Wellnhofer 2005-11-30 18:07:36 UTC
See the discussion here:
http://mail.gnome.org/archives/xslt/2003-December/msg00047.html

XHTML 1.1 is currently serialized as XML, without any XHTML fixups. It would be
nice if XHTML 1.1 would be treated like XHTML 1.0.
Comment 1 Nick Wellnhofer 2006-01-14 16:38:45 UTC
Created attachment 57351 [details] [review]
Proposed patch

Adds support for XHTML 1.1 and XHTML 2.0
Comment 2 Daniel Veillard 2006-01-14 19:23:25 UTC
I don't think that's sufficient.
In the case of XHTML-1.0 it was designed to be standalone, i.e. not extensible
just a backport of HTML-4.01 . However XHTML-1.1 and later are expected to be
compounded, the fact that you have a XHTML DOCTYPE doesn't prevent other elements
from other namespaces to be added. What are the serialization rules for them ?
I assume there is none. However the current xhtml serialization routines assume
the namespace of the elements are the xhtml one. if this isn't the case, 
for exampel if there is a element named 'script' in another namespace embedded
then it will get the special processing. 
So adding specific sedialization rules for the modular XHTML can only be enabled
once the xhtml serialization routines will also check the namespaces. As is
the patch open the door to real problems at the XML level, I don't think it's
a good idea to apply it, extra checking code will be needed in the xhtml*Dump*
routines.

Daniel
Comment 3 Nick Wellnhofer 2006-01-14 20:21:18 UTC
I see. XHTML 1.1 and beyond isn't designed to be backwards compatible with HTML. So the serialization quirks aren't needed.