Skip to content
Permalink
Browse files

[] (0) Make document.title safe from synchronous mutation events.

git-svn-id: http://svn.whatwg.org/webapps@3566 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 8, 2009
1 parent b631c5c commit eb81f5baeb7ff6ae666577d02314ba2997afbc84
Showing with 13 additions and 10 deletions.
  1. +5 −5 index
  2. +8 −5 source
10 index
@@ -6999,14 +6999,14 @@ interface <dfn id=htmldocument>HTMLDocument</dfn> {

<li>If <a href=#the-title-element-0>the <code>title</code> element</a> is null, then a
new <code><a href=#the-title-element>title</a></code> element must be created and appended to
<a href=#the-head-element-0>the <code>head</code> element</a>.</li>
<a href=#the-head-element-0>the <code>head</code> element</a>. Let <var title="">element</var> be that element. Otherwise, let <var title="">element</var> be <a href=#the-title-element-0>the <code>title</code>
element</a>.</li>

<li>The children of <a href=#the-title-element-0>the <code>title</code> element</a> (if
any) must all be removed.</li>
<li>The children of <var title="">element</var> (if any) must all
be removed.</li>

<li>A single <code>Text</code> node whose data is the new value
being assigned must be appended to <a href=#the-title-element-0>the <code>title</code>
element</a>.</li>
being assigned must be appended to <var title="">element</var>.</li>

</ol><p>The <code title=dom-document-title><a href=#document.title>title</a></code> attribute on
the <code><a href=#htmldocument>HTMLDocument</a></code> interface should shadow the attribute
13 source
@@ -7032,14 +7032,17 @@ interface <dfn>HTMLDocument</dfn> {

<li>If <span>the <code>title</code> element</span> is null, then a
new <code>title</code> element must be created and appended to
<span>the <code>head</code> element</span>.</li>
<span>the <code>head</code> element</span>. Let <var
title="">element</var> be that element. Otherwise, let <var
title="">element</var> be <span>the <code>title</code>
element</span>.</li>

<li>The children of <span>the <code>title</code> element</span> (if
any) must all be removed.</li>
<li>The children of <var title="">element</var> (if any) must all
be removed.</li>

<li>A single <code>Text</code> node whose data is the new value
being assigned must be appended to <span>the <code>title</code>
element</span>.</li>
being assigned must be appended to <var
title="">element</var>.</li>

</ol>

0 comments on commit eb81f5b

Please sign in to comment.
You can’t perform that action at this time.