Bug 162468 - document.title getter does not strip / collapse the right whitespace characters
Summary: document.title getter does not strip / collapse the right whitespace characters
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-09-22 15:32 PDT by Chris Dumez
Modified: 2016-09-23 09:28 PDT (History)
9 users (show)

See Also:


Attachments
Patch (6.10 KB, patch)
2016-09-22 15:48 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-09-22 15:32:53 PDT
The document.title getter does not strip / collapse whitespace characters as per:
- https://html.spec.whatwg.org/#document.title

This part of the specification provides more information about which whitespace characters:
- https://html.spec.whatwg.org/#strip-and-collapse-whitespace
- https://html.spec.whatwg.org/#space-character

Firefox matches the specification. However, WebKit strips / collapses some characters it should not.
Comment 1 Chris Dumez 2016-09-22 15:48:31 PDT
Created attachment 289616 [details]
Patch
Comment 2 Chris Dumez 2016-09-23 09:27:59 PDT
Comment on attachment 289616 [details]
Patch

Clearing flags on attachment: 289616

Committed r206309: <http://trac.webkit.org/changeset/206309>
Comment 3 Chris Dumez 2016-09-23 09:28:04 PDT
All reviewed patches have been landed.  Closing bug.