Changeset 130203 in webkit
- Timestamp:
- Oct 2, 2012, 1:35:47 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r130202 r130203 1 2012-10-02 Erik Arvidsson <arv@chromium.org> 2 3 createHTMLDocument() should not create a title element if the title argument is left out 4 https://bugs.webkit.org/show_bug.cgi?id=96694 5 6 Reviewed by Darin Adler. 7 8 In case the argument is not passed to createHTMLDocument we use a null string and check 9 for that before creating a title element. 10 11 * fast/dom/DOMImplementation/createHTMLDocument-optional-title-expected.txt: Added. 12 * fast/dom/DOMImplementation/createHTMLDocument-optional-title.html: Added. 13 1 14 2012-10-02 Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com> 2 15 -
trunk/Source/WebCore/ChangeLog
r130199 r130203 1 2012-10-02 Erik Arvidsson <arv@chromium.org> 2 3 createHTMLDocument() should not create a title element if the title argument is left out 4 https://bugs.webkit.org/show_bug.cgi?id=96694 5 6 Reviewed by Darin Adler. 7 8 In case the argument is not passed to createHTMLDocument we use a null string and check 9 for that before creating a title element. 10 11 Test: fast/dom/DOMImplementation/createHTMLDocument-optional-title.html 12 13 * dom/DOMImplementation.cpp: 14 (WebCore::DOMImplementation::createHTMLDocument): 15 * dom/DOMImplementation.idl: 16 1 17 2012-10-02 David Grogan <dgrogan@chromium.org> 2 18 -
trunk/Source/WebCore/dom/DOMImplementation.cpp
r129164 r130203 373 373 d->open(); 374 374 d->write("<!doctype html><html><body></body></html>"); 375 d->setTitle(title); 375 if (!title.isNull()) 376 d->setTitle(title); 376 377 d->setSecurityOrigin(m_document->securityOrigin()); 377 378 d->setContextFeatures(m_document->contextFeatures()); -
trunk/Source/WebCore/dom/DOMImplementation.idl
r107304 r130203 50 50 // HTMLDOMImplementation interface from DOM Level 2 HTML 51 51 52 HTMLDocument createHTMLDocument(in [Optional=DefaultIs Undefined] DOMString title);52 HTMLDocument createHTMLDocument(in [Optional=DefaultIsNullString] DOMString title); 53 53 }; 54 54
Note:
See TracChangeset
for help on using the changeset viewer.