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

Issue 1578193006: Fix behavior of Document.body getter (Closed)

Created:
4 years, 11 months ago by rwlbuis
Modified:
4 years, 11 months ago
Reviewers:
tkent
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-w3ctests_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, sof, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix behavior of Document.body getter According to [1], the body element is the first child of the html element that is either a body element or a frameset element. The current version does not check that the parent node is the html element, so add that check. Behavior matches Firefox. [1] https://html.spec.whatwg.org/multipage/dom.html#the-body-element-2 BUG=490511 Committed: https://crrev.com/c482a252feb7731369dcc483b0b145efaae7aba6 Cr-Commit-Position: refs/heads/master@{#369654}

Patch Set 1 #

Patch Set 2 : V2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -20 lines) Patch
D third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/documents/dom-tree-accessors/document.body-getter-expected.txt View 1 chunk +0 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (12 generated)
rwlbuis
PTAL.
4 years, 11 months ago (2016-01-14 22:19:54 UTC) #9
tkent
Let's just update Document::body(). Inconsistency between body() and bodyForBinding() is confusing.
4 years, 11 months ago (2016-01-14 23:03:40 UTC) #10
rwlbuis
On 2016/01/14 23:03:40, tkent wrote: > Let's just update Document::body(). Inconsistency between body() and > ...
4 years, 11 months ago (2016-01-15 00:39:42 UTC) #12
tkent
lgtm
4 years, 11 months ago (2016-01-15 00:43:36 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1578193006/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1578193006/20001
4 years, 11 months ago (2016-01-15 00:46:01 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 11 months ago (2016-01-15 02:07:47 UTC) #17
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/c482a252feb7731369dcc483b0b145efaae7aba6 Cr-Commit-Position: refs/heads/master@{#369654}
4 years, 11 months ago (2016-01-15 02:10:15 UTC) #19
tkent
> BUG=490511 I recommend to file new bug specific to this problem. (and I'd be ...
4 years, 11 months ago (2016-01-15 02:15:39 UTC) #20
rwlbuis
4 years, 11 months ago (2016-01-15 15:39:47 UTC) #21
Message was sent while issue was closed.
On 2016/01/15 02:15:39, tkent wrote:
> > BUG=490511
> 
> I recommend to file new bug specific to this problem.

Sorry about that! I created crbug.com/578145 after the CL landed.

> (and I'd be happy if
>
https://docs.google.com/spreadsheets/d/1-xlh6co6QYC-KVof27sVxjA7yuUFvYcaul3vE...
> is updated)

I was not aware of the spreadsheet, that seems handy! I added the new bug url.

Powered by Google App Engine
This is Rietveld 408576698