[Bug 26248] Spec mismatch between createHTMLDocument and textContent

https://www.w3.org/Bugs/Public/show_bug.cgi?id=26248

Boris Zbarsky <bzbarsky@mit.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bzbarsky@mit.edu

--- Comment #3 from Boris Zbarsky <bzbarsky@mit.edu> ---
Basically, createHTMLDocument("foo") does NOT set .textContent = "foo" on the
<title> element.  It does something slightly different that guarantees there is
a text node inside that <title>.

Looking at Chrome's code, it implements createHTMLDocument("foo") by doing:

  document.title = "foo";

which is defined in the spec in terms of setting textContent on the <title>
element, which in fact does not match what the DOM spec says to do for
createHTMLDocument.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 1 July 2014 15:50:16 UTC