Changeset 95009 in webkit


Ignore:
Timestamp:
Sep 12, 2011 8:50:01 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

Setting document.title doesn't affect contents of title tag of XHTML documents
https://bugs.webkit.org/show_bug.cgi?id=57537

Patch by Jacky Jiang <zhajiang@rim.com> on 2011-09-12
Reviewed by Alexey Proskuryakov.

Source/WebCore:

Update the contents of the <title> tag of XHTML documents when setting
document.title.

Test: fast/dom/title-content-set-innerText-get.xhtml

  • dom/Document.cpp:

(WebCore::Document::setTitle):

LayoutTests:

  • fast/dom/title-content-set-innerText-get-expected.txt: Added.
  • fast/dom/title-content-set-innerText-get.xhtml: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r95008 r95009  
     12011-09-12  Jacky Jiang  <zhajiang@rim.com>
     2
     3        Setting document.title doesn't affect contents of title tag of XHTML documents
     4        https://bugs.webkit.org/show_bug.cgi?id=57537
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        * fast/dom/title-content-set-innerText-get-expected.txt: Added.
     9        * fast/dom/title-content-set-innerText-get.xhtml: Added.
     10
    1112011-09-12  Dominic Mazzoni  <dmazzoni@google.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r95004 r95009  
     12011-09-12  Jacky Jiang  <zhajiang@rim.com>
     2
     3        Setting document.title doesn't affect contents of title tag of XHTML documents
     4        https://bugs.webkit.org/show_bug.cgi?id=57537
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        Update the contents of the <title> tag of XHTML documents when setting
     9        document.title.
     10
     11        Test: fast/dom/title-content-set-innerText-get.xhtml
     12
     13        * dom/Document.cpp:
     14        (WebCore::Document::setTitle):
     15
    1162011-09-12  Raphael Kubo da Costa  <kubo@profusion.mobi>
    217
  • trunk/Source/WebCore/dom/Document.cpp

    r94513 r95009  
    13301330    // Title set by JavaScript -- overrides any title elements.
    13311331    m_titleSetExplicitly = true;
    1332     if (!isHTMLDocument())
     1332    if (!isHTMLDocument() && !isXHTMLDocument())
    13331333        m_titleElement = 0;
    13341334    else if (!m_titleElement) {
Note: See TracChangeset for help on using the changeset viewer.