Bug 157421 - createDocument/createHTMLDocument should create a document with URL "about:blank", not ""
Summary: createDocument/createHTMLDocument should create a document with URL "about:bl...
Status: RESOLVED DUPLICATE of bug 153363
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Safari 9
Hardware: Unspecified Unspecified
: P2 Minor
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-06 07:34 PDT by Domenic Denicola
Modified: 2016-05-07 19:10 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Domenic Denicola 2016-05-06 07:34:34 PDT
http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=4163 (and a similar version for createDocument) should log "about:blank" in the Log: section. Instead, in Safari 9, it logs "".

This was a recent spec change, sort of. See https://github.com/whatwg/html/issues/1174. Browsers do not have interop here, but "about:blank" is the best thing to converge on.

Web platform tests at 

- http://w3c-test.org/dom/nodes/DOMImplementation-createDocument.html
- http://w3c-test.org/dom/nodes/DOMImplementation-createHTMLDocument.html
Comment 1 Chris Dumez 2016-05-07 19:07:43 PDT
(In reply to comment #0)
> http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=4163 (and a
> similar version for createDocument) should log "about:blank" in the Log:
> section. Instead, in Safari 9, it logs "".
> 
> This was a recent spec change, sort of. See
> https://github.com/whatwg/html/issues/1174. Browsers do not have interop
> here, but "about:blank" is the best thing to converge on.
> 
> Web platform tests at 
> 
> - http://w3c-test.org/dom/nodes/DOMImplementation-createDocument.html
> - http://w3c-test.org/dom/nodes/DOMImplementation-createHTMLDocument.html

@Domenic: This has definitely been fixed since Safari 9. I suggest testing Safari Technology Preview as we've significantly improved our pass rate of w3c web-platform-tests.
Comment 2 Chris Dumez 2016-05-07 19:08:25 PDT

*** This bug has been marked as a duplicate of bug 153363 ***
Comment 3 Domenic Denicola 2016-05-07 19:10:00 PDT
Ah, thank you! Maybe I should get my employer to buy me a Mac, instead of constantly testing on my personal iPad...