Bug 157421

Summary: createDocument/createHTMLDocument should create a document with URL "about:blank", not ""
Product: WebKit Reporter: Domenic Denicola <d>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Minor CC: cdumez
Priority: P2    
Version: Safari 9   
Hardware: Unspecified   
OS: Unspecified   

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...