Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Issue 384413003: Document.title getter should return text of title element and setter should stop when head el… (Closed)

Created:
6 years, 5 months ago by kangil_
Modified:
6 years, 5 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Document.title getter should return text of title element and setter should stop when head element is null SPEC: http://www.whatwg.org/specs/web-apps/current-work/#document.title This CL allowed implicit title set from Document::setTitleElement() and stopped operation on setter when head element is null as per specification. In addition, with this change, failed test cases will be passed in http://w3c-test.org/html/dom/documents/dom-tree-accessors/document.title-01.html Behavior in other browsers: *)FF: PASS *)IE: PASS Plus, this CL deleted obsolete title argument from Document::setTitleElement. TEST=LayoutTests/fast/dom/Document/title-01.html ,LayoutTests/svg/custom/multiple-title-elements.svg Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178889

Patch Set 1 #

Patch Set 2 : Document.title should be the first title element in the document #

Patch Set 3 : Add test case for this CL #

Total comments: 10

Patch Set 4 : Take review comment into consideration #

Total comments: 1

Patch Set 5 : Rebase and take review comment into consideration #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -24 lines) Patch
A LayoutTests/fast/dom/Document/title-01.html View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/Document/title-01-expected.txt View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M LayoutTests/svg/custom/multiple-title-elements.svg View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/svg/custom/multiple-title-elements-expected.txt View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/Document.h View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 4 5 chunks +26 lines, -18 lines 0 comments Download
M Source/core/html/HTMLTitleElement.cpp View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/svg/SVGTitleElement.cpp View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Inactive
Some initial feedback. https://codereview.chromium.org/384413003/diff/40001/LayoutTests/svg/custom/multiple-title-elements.svg File LayoutTests/svg/custom/multiple-title-elements.svg (right): https://codereview.chromium.org/384413003/diff/40001/LayoutTests/svg/custom/multiple-title-elements.svg#newcode43 LayoutTests/svg/custom/multiple-title-elements.svg:43: expect('', document.title); Why this behavior change ...
6 years, 5 months ago (2014-07-16 14:42:05 UTC) #1
kangil_
On 2014/07/16 14:42:05, Chris Dumez wrote: > Some initial feedback. Thanks Chris for initial feedback. ...
6 years, 5 months ago (2014-07-17 00:08:43 UTC) #2
kangil_
FWIW, dom tree for ClickToPlayPluginTest.NoCallbackAtLoad test case. *#document 0x53614010 HTML 0x53608118 BODY 0x53608170 STYLE="background-color: rgb(38,38,38)" ...
6 years, 5 months ago (2014-07-17 06:52:27 UTC) #3
kangil_
This CL depends on https://codereview.chromium.org/400523004/
6 years, 5 months ago (2014-07-17 07:21:21 UTC) #4
kangil_
PTAL https://codereview.chromium.org/384413003/diff/40001/LayoutTests/svg/custom/multiple-title-elements.svg File LayoutTests/svg/custom/multiple-title-elements.svg (right): https://codereview.chromium.org/384413003/diff/40001/LayoutTests/svg/custom/multiple-title-elements.svg#newcode43 LayoutTests/svg/custom/multiple-title-elements.svg:43: expect('', document.title); On 2014/07/16 14:42:05, Chris Dumez wrote: ...
6 years, 5 months ago (2014-07-18 06:55:58 UTC) #5
kangil_
@Chris: Gentle ping. :)
6 years, 5 months ago (2014-07-21 12:47:39 UTC) #6
Inactive
I'll let tkent review this as I don't feel confident doing it. https://codereview.chromium.org/384413003/diff/60001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp ...
6 years, 5 months ago (2014-07-22 00:55:23 UTC) #7
tkent
Need a test for SVG document too. dpranke, this CL tries to import a single ...
6 years, 5 months ago (2014-07-22 03:10:54 UTC) #8
Dirk Pranke
On 2014/07/22 03:10:54, tkent wrote: > Need a test for SVG document too. > > ...
6 years, 5 months ago (2014-07-22 19:11:47 UTC) #9
kangil_
On 2014/07/22 19:11:47, Dirk Pranke wrote: > On 2014/07/22 03:10:54, tkent wrote: > > Need ...
6 years, 5 months ago (2014-07-23 01:52:54 UTC) #10
tkent
On 2014/07/23 01:52:54, kangil_ wrote: > On 2014/07/22 19:11:47, Dirk Pranke wrote: > > On ...
6 years, 5 months ago (2014-07-25 00:36:42 UTC) #11
Dirk Pranke
On 2014/07/25 00:36:42, tkent wrote: > On 2014/07/23 01:52:54, kangil_ wrote: > > On 2014/07/22 ...
6 years, 5 months ago (2014-07-25 00:37:32 UTC) #12
tkent
lgmt. TEST= line should be at the last part of the description.
6 years, 5 months ago (2014-07-25 00:37:44 UTC) #13
tkent
On 2014/07/25 00:37:44, tkent wrote: > lgmt. oops, lgtm :-)
6 years, 5 months ago (2014-07-25 00:37:58 UTC) #14
kangil_
On 2014/07/25 00:36:42, tkent wrote: > Please file a bug about deleting title-01.html. Done at ...
6 years, 5 months ago (2014-07-25 01:00:13 UTC) #15
kangil_
On 2014/07/25 00:37:44, tkent wrote: > lgmt. > > TEST= line should be at the ...
6 years, 5 months ago (2014-07-25 01:02:03 UTC) #16
kangil_
The CQ bit was checked by kangil.han@samsung.com
6 years, 5 months ago (2014-07-25 01:02:14 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kangil.han@samsung.com/384413003/80001
6 years, 5 months ago (2014-07-25 01:02:43 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_compile_dbg on tryserver.blink ...
6 years, 5 months ago (2014-07-25 02:17:00 UTC) #19
commit-bot: I haz the power
6 years, 5 months ago (2014-07-25 02:34:04 UTC) #20
Message was sent while issue was closed.
Change committed as 178889

Powered by Google App Engine
This is Rietveld 408576698