On 27/1/05 11:22 PM, "Henri Sivonen" <[EMAIL PROTECTED]> wrote:

> When <title type='XHTML>I &lt;3 Huckabees</title> is parsed, you get a
> 'title' element node with a text node child whose content is "I <3
> Huckabees". To form an XHTML document, you don't concatenate that
> string to some source markup, but you move the text node to a tree like
> this (assume XHTML namespace):
> html
>  head
>  body
>    div
>      #text: "I <3 Huckabees"
> 
> If this tree is now serialized, we get
> <html xmlns='http://www.w3.org/1999/xhtml'><head/><body><div>I &lt;3
> Huckabees</div></body></html>

ahhhm ... ok, sounds reasonable.

however, the spec says:

    The content SHOULD be XHTML text and markup that could
    validly appear directly within an xhtml:div element.

which could lead others to make the same mistake I must have made.

e.

Reply via email to