[Bug 24451] editorial comments on LCWD

https://www.w3.org/Bugs/Public/show_bug.cgi?id=24451

--- Comment #14 from Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no> ---
(In reply to Eliot Graff from comment #12)

The wording seems fine with me. But I have one small gripe with the very last
sentence, see below.


> Fig. 5 CDATA section that is commented out, resulting in a total of three
> DOM nodes.
> 
> Example 12
> <script>/*<![CDATA[*/
>     foo 
>     /*]]>*/</script>
> 
> Thus, for polyglot markup, a CDATA section must appear at the start of its
> containing element, and hence be the first child of that element. 

The last sentence is some kind of a summary, which can be a nice thing to have,
although it sometimes creates confusion too, whenever such a summary doesn’t
fully support the previous text.

The sentence currently sounds as if the code in Fig. 5 is not permitted in
polyglots. The problem is the word "child", which to me is synonymous with
"node". Thus, in Fig. 5, the CDATA section will be the second child, while the
summary says it should be the first child.

I think perhaps we should forget the wording "first child":

]] 
  Thus, for polyglot markup, a CDATA section must appear at the start of its
containing element and must span the entire element. It should be the only node
of the element. However, as described above, contents that results in a
singular DOM node before and/or after the CDATA section is permitted.
[[

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 27 March 2014 02:53:44 UTC