Summary: | Document.title does not behave according to specification | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||
Component: | DOM | Assignee: | Chris Dumez <cdumez> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | ap, rniwa | ||||
Priority: | P2 | Keywords: | WebExposed | ||||
Version: | WebKit Nightly Build | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
URL: | https://html.spec.whatwg.org/multipage/dom.html#document.title | ||||||
Attachments: |
|
Description
Chris Dumez
2015-09-12 15:31:05 PDT
Created attachment 261070 [details]
Patch
Comment on attachment 261070 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=261070&action=review > Source/WebCore/dom/Document.cpp:1579 > + if (isHTMLDocument() || isXHTMLDocument()) { > + m_titleElement = descendantsOfType<HTMLTitleElement>(*this).first(); > + } else if (isSVGDocument()) { Nit: we shouldn't have curly brackets around a single line statement. Committed r189680: <http://trac.webkit.org/changeset/189680> |