http://www.w3.org/html/wg/html5/#dom-tree

>
>    1. If the title element <http://www.w3.org/html/wg/html5/#the-title1>is 
> null, then a new
>    title <http://www.w3.org/html/wg/html5/#title1> element must be created
>    and appended to the head 
> element<http://www.w3.org/html/wg/html5/#the-head0>.
>
>    2. The children of the title 
> element<http://www.w3.org/html/wg/html5/#the-title1>(if any) must all be 
> removed.
>    3. A single Text node whose data is the new value being assigned must
>    be appended to the title 
> element<http://www.w3.org/html/wg/html5/#the-title1>.
>
>
>
Steps 1 and 2 can fire mutation events and cause "the title element" to
become null again. I suppose if that happens, the algorithm should stop, but
the spec should say so.

Rob
-- 
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]

Reply via email to