W3C home > Mailing lists > Public > public-multilingualweb-lt-comments@w3.org > July 2013

Re: Comments on section 6.2 of ITS 2.0

From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Date: Fri, 05 Jul 2013 17:08:14 +0200
Message-ID: <51D6E15E.9020804@disruptive-innovations.com>
To: Felix Sasaki <fsasaki@w3.org>
CC: Jirka Kosek <jirka@kosek.cz>, public-multilingualweb-lt-comments@w3.org
On 05/07/13 16:57, Felix Sasaki wrote:

> So please answer my question on a technical level, not in terms of the
> standardization process.

Ok, but the process still matters. If we reject a resolution for an
issue "only because it's already shipped", then we can reject the
whole process.

So from a technical POV:

If we implement what I recommend with a CDATA section for XHTML docs,
getting the ITS rules from any script element is ALWAYS a matter of two
lines WHATEVER the flavor of HTML:

   var source = scriptElement.textContent;
   var itsInstance = (new DOMParser())
                       .parseFromString(source, "text/xml");

and the serialization is as simple, you create a TextNode or a
CDATASection. That's for _both_ editors and the xml toolchain. I can't
call that a burden.

If we keep the current HTML/XML dicotomy with textual contents on
one hand and a subtree on the other, that's considerably more complex
to deal with.

</Daniel>
Received on Friday, 5 July 2013 15:08:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:32:28 UTC