New issue
Advanced search Search tips
Starred by 6 users

Issue metadata

Status: Fixed
Owner:
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug

Blocked on:
issue 238368

Blocking:
issue 673664
issue 643043



Sign in to add a comment

Document should be constructable

Project Member Reported by arv@chromium.org, May 6 2013 Back to list

Issue description

http://dom.spec.whatwg.org/#document

Make Document constructable so that one can do "new Document" instead of "document.implementation.createHTMLDocument('')"

 

Comment 1 by arv@chromium.org, May 6 2013

Blockedon: chromium:238368

Comment 2 by arv@chromium.org, Jun 29 2015

Cc: jsb...@chromium.org
Owner: ----
Status: Available

Comment 3 by tkent@chromium.org, Aug 6 2015

Labels: -Cr-Blink
Status: WontFix
There is no spec yet.

Comment 5 by phil...@opera.com, Nov 24 2015

Status: Available
The spec is at https://dom.spec.whatwg.org/#dom-document-document

Comment 6 by tkent@chromium.org, Apr 19 2016

Labels: Hotlist-Interop
Owner: dominicc@chromium.org
Blocking: 643043

Comment 9 by foolip@chromium.org, Dec 13 2016

Blocking: 673664

Comment 10 by tkent@chromium.org, May 16 2017

Cc: dominicc@chromium.org
Owner: tkent@chromium.org
Status: Started
chromestatus entry:
https://www.chromestatus.com/feature/6078850731606016

Project Member

Comment 11 by bugdroid1@chromium.org, May 23 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/ef4b834e59e5d1bcf0e945445ada37f2e5e90b84

commit ef4b834e59e5d1bcf0e945445ada37f2e5e90b84
Author: tkent <tkent@chromium.org>
Date: Tue May 23 16:23:52 2017

Support Document constructor.

|new Document()| creates a new Document instance.

Intent-to-implement-and-ship:
https://groups.google.com/a/chromium.org/forum/#!msg/Blink-dev/IxyBdzkSU98/LJ12LwjKAAAJ

This CL fixes 168 failures in external/wpt/.

WPT changes:
* Adds 'origin' check to dom/nodes/Document-constructor.html.
* Adds dom/nodes/Document-constructor-svg.svg
* Adds dom/nodes/Document-constructor-xml.xml

BUG= 238234 ,  643043 

Review-Url: https://codereview.chromium.org/2881323002
Cr-Commit-Position: refs/heads/master@{#473931}

[modify] https://crrev.com/ef4b834e59e5d1bcf0e945445ada37f2e5e90b84/third_party/WebKit/LayoutTests/external/wpt/cssom/interfaces-expected.txt
[delete] https://crrev.com/b8b1cbadd7941505caf3cdaebfa30f019854f815/third_party/WebKit/LayoutTests/external/wpt/custom-elements/adopted-callback-expected.txt
[delete] https://crrev.com/b8b1cbadd7941505caf3cdaebfa30f019854f815/third_party/WebKit/LayoutTests/external/wpt/custom-elements/connected-callbacks-expected.txt
[delete] https://crrev.com/b8b1cbadd7941505caf3cdaebfa30f019854f815/third_party/WebKit/LayoutTests/external/wpt/custom-elements/disconnected-callbacks-expected.txt
[modify] https://crrev.com/ef4b834e59e5d1bcf0e945445ada37f2e5e90b84/third_party/WebKit/LayoutTests/external/wpt/custom-elements/parser/parser-uses-registry-of-owner-document-expected.txt
[delete] https://crrev.com/b8b1cbadd7941505caf3cdaebfa30f019854f815/third_party/WebKit/LayoutTests/external/wpt/custom-elements/upgrading-expected.txt
[modify] https://crrev.com/ef4b834e59e5d1bcf0e945445ada37f2e5e90b84/third_party/WebKit/LayoutTests/external/wpt/dom/events/Event-dispatch-bubbles-false-expected.txt
[modify] https://crrev.com/ef4b834e59e5d1bcf0e945445ada37f2e5e90b84/third_party/WebKit/LayoutTests/external/wpt/dom/events/Event-dispatch-bubbles-true-expected.txt
[modify] https://crrev.com/ef4b834e59e5d1bcf0e945445ada37f2e5e90b84/third_party/WebKit/LayoutTests/external/wpt/dom/interfaces-expected.txt
[modify] https://crrev.com/ef4b834e59e5d1bcf0e945445ada37f2e5e90b84/third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Document-constructor-expected.txt
[add] https://crrev.com/ef4b834e59e5d1bcf0e945445ada37f2e5e90b84/third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Document-constructor-svg.svg
[add] https://crrev.com/ef4b834e59e5d1bcf0e945445ada37f2e5e90b84/third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Document-constructor-xml.xml
[modify] https://crrev.com/ef4b834e59e5d1bcf0e945445ada37f2e5e90b84/third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Document-constructor.html
[delete] https://crrev.com/b8b1cbadd7941505caf3cdaebfa30f019854f815/third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Document-doctype-expected.txt
[delete] https://crrev.com/b8b1cbadd7941505caf3cdaebfa30f019854f815/third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Node-childNodes-expected.txt
[modify] https://crrev.com/ef4b834e59e5d1bcf0e945445ada37f2e5e90b84/third_party/WebKit/LayoutTests/external/wpt/fullscreen/interfaces-expected.txt
[modify] https://crrev.com/ef4b834e59e5d1bcf0e945445ada37f2e5e90b84/third_party/WebKit/LayoutTests/external/wpt/html/browsers/origin/relaxing-the-same-origin-restriction/document_domain-expected.txt
[delete] https://crrev.com/b8b1cbadd7941505caf3cdaebfa30f019854f815/third_party/WebKit/LayoutTests/external/wpt/html/browsers/the-window-object/Document-defaultView-expected.txt
[modify] https://crrev.com/ef4b834e59e5d1bcf0e945445ada37f2e5e90b84/third_party/WebKit/LayoutTests/fast/dom/dom-constructors-expected.txt
[modify] https://crrev.com/ef4b834e59e5d1bcf0e945445ada37f2e5e90b84/third_party/WebKit/LayoutTests/fast/dom/dom-constructors.html
[modify] https://crrev.com/ef4b834e59e5d1bcf0e945445ada37f2e5e90b84/third_party/WebKit/Source/core/dom/Document.cpp
[modify] https://crrev.com/ef4b834e59e5d1bcf0e945445ada37f2e5e90b84/third_party/WebKit/Source/core/dom/Document.h
[modify] https://crrev.com/ef4b834e59e5d1bcf0e945445ada37f2e5e90b84/third_party/WebKit/Source/core/dom/Document.idl

Comment 12 by tkent@chromium.org, May 23 2017

Labels: M-60

Comment 13 by tkent@chromium.org, May 23 2017

Status: Fixed

Sign in to add a comment