Bug 159536 - HTMLTitleElement.text should only account for direct children Text nodes
Summary: HTMLTitleElement.text should only account for direct children Text nodes
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: WebExposed
Depends on:
Blocks:
 
Reported: 2016-07-07 16:37 PDT by Chris Dumez
Modified: 2016-07-07 18:16 PDT (History)
5 users (show)

See Also:


Attachments
Patch (4.27 KB, patch)
2016-07-07 16:39 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2016-07-07 16:37:11 PDT
HTMLTitleElement.text should only account for direct children Text nodes:
- https://html.spec.whatwg.org/multipage/semantics.html#dom-title-text
- https://html.spec.whatwg.org/multipage/infrastructure.html#child-text-content

Firefox and Chrome match the specification. However, WebKit does accounts for all Text nodes that are descendants.

Test case:
http://w3c-test.org/html/semantics/document-metadata/the-title-element/title.text-01.html
Comment 1 Chris Dumez 2016-07-07 16:39:53 PDT
Created attachment 283087 [details]
Patch
Comment 2 WebKit Commit Bot 2016-07-07 18:16:27 PDT
Comment on attachment 283087 [details]
Patch

Clearing flags on attachment: 283087

Committed r202951: <http://trac.webkit.org/changeset/202951>
Comment 3 WebKit Commit Bot 2016-07-07 18:16:32 PDT
All reviewed patches have been landed.  Closing bug.