[whatwg] Setting the "title" attribute
Robert O'Callahan
robert at ocallahan.org
Wed Aug 6 20:54:04 PDT 2008
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]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20080807/b023a081/attachment.htm>
More information about the whatwg
mailing list