clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reto Gmür <r...@apache.org>
Subject Re: RDFa roundtrip via browser changes HTML
Date Tue, 03 Jun 2014 14:01:07 GMT
Tried out the XHTML version, but now the firefox send back:

<br xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:disco=\"
http://discobits.org/ontology#\" />

and chromium fails to start the editor (etch).....


On Mon, Jun 2, 2014 at 8:59 PM, Reto Gmür <reto@apache.org> wrote:

> Hi,
>
> After solving the problem with the PRE-tags (the first newline after the
> tag is ignored in HTML serialization) I thought I would be close to a
> solution for CLEREZZA-829 (new editor).
>
> Unfortunately the RDF I get back back from the browser is often not the
> same that I send to it.
> Example:
>
> The XML literal in the sent RDFa contains
> <br xmlns=\"http://www.w3.org/1999/xhtml\"/>
>
> Firefox sends back:
> <br xmlns=\"http://www.w3.org/1999/xhtml\" />
>
> Chrome:
> <br xmlns=\"http://www.w3.org/1999/xhtml\">
>
> Any idea how to solve this?
>
> I see only two options:
> - Serialize the HTML as XML - Does this works now with HTML5 and content
> editable?
> - Canonicalize the XML (and HTML) literals in the graph and canonicalize
> all that I get back - Canonical canonical XML doesn't work for TML as <br/>
> is rendered ifferently that <br></br>
>
> Cheers,
> Reto
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message