[Webkit-unassigned] [Bug 28864] Setting document.title reuses <title>'s textnode child

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jul 10 10:01:06 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=28864

--- Comment #9 from Chris Dumez <cdumez at apple.com> ---
Looks like this still applies according to the latest specification:
- https://html.spec.whatwg.org/multipage/dom.html#document.title
- https://dom.spec.whatwg.org/#dom-node-textcontent

This is caused by the following "optimization" in HTMLTitleElement::setText():
    if (!value.isEmpty() && hasOneChild() && is<Text>(*firstChild())) {
        downcast<Text>(*firstChild()).setData(value);
        return;
    }

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160710/93b6824f/attachment.html>


More information about the webkit-unassigned mailing list