Navigation Menu

Skip to content

Commit

Permalink
[] (0) Make document.title safe from synchronous mutation events.
Browse files Browse the repository at this point in the history
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 eb81f5b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
10 changes: 5 additions & 5 deletions index
Expand Up @@ -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
Expand Down
13 changes: 8 additions & 5 deletions source
Expand Up @@ -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>

Expand Down

0 comments on commit eb81f5b

Please sign in to comment.