cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 20508] - [PATCH] Namespace cleanup in HTMLSerializer
Date Sat, 23 Apr 2005 22:55:42 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=20508>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=20508





------- Additional Comments From agallardo@agsoftware.dnsalias.com  2005-04-24 00:55 -------
(In reply to comment #2)
> Couple of questions:
> 1) Is it backward compatible (does it has backward compatibility mode)?

Nope. But we meet this requirement.

> 2) HTMLSerializer can not serialize valid xhtml. Why then all xhtml namespace
> handling?

I think XHTML and HTML are not the same. XHTML is more XML => XHTML should be
serialized using XML serializer.

> 3) Will it handle HTML with RDF in it
> (http://www.w3.org/TR/1999/REC-rdf-syntax-19990222/#ex-Embedding)?

Nope.

                               - 0 -

I found the patch will not allow to include RDF elements (because it trunks what
ever is not the XHTML namespace. Then it is not backward compatible. Also see:

http://www.w3.org/TR/REC-html40/appendix/notes.html#notes-invalid-docs

On the other hand stripping namespaces for valid HTML 4.01 is a good idea.

IMHO, we can refactor the patch to add an optional parameter that will strip the
namespaces when the use set it. To keep backward compatibility, the current
approach (include whatever namespace) should be the default behavior.

Is that OK?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Mime
View raw message