{"action":"created","issue":{"url":"https://api.github.com/repos/whatwg/html/issues/2555","repository_url":"https://api.github.com/repos/whatwg/html","labels_url":"https://api.github.com/repos/whatwg/html/issues/2555/labels{/name}","comments_url":"https://api.github.com/repos/whatwg/html/issues/2555/comments","events_url":"https://api.github.com/repos/whatwg/html/issues/2555/events","html_url":"https://github.com/whatwg/html/issues/2555","id":222558875,"number":2555,"title":"Unclear what to do with fragments on document.open","user":{"login":"bokand","id":11840257,"avatar_url":"https://avatars1.githubusercontent.com/u/11840257?v=4","gravatar_id":"","url":"https://api.github.com/users/bokand","html_url":"https://github.com/bokand","followers_url":"https://api.github.com/users/bokand/followers","following_url":"https://api.github.com/users/bokand/following{/other_user}","gists_url":"https://api.github.com/users/bokand/gists{/gist_id}","starred_url":"https://api.github.com/users/bokand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bokand/subscriptions","organizations_url":"https://api.github.com/users/bokand/orgs","repos_url":"https://api.github.com/users/bokand/repos","events_url":"https://api.github.com/users/bokand/events{/privacy}","received_events_url":"https://api.github.com/users/bokand/received_events","type":"User","site_admin":false},"labels":[{"id":370052564,"url":"https://api.github.com/repos/whatwg/html/labels/topic:%20navigation","name":"topic: navigation","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-04-18T22:02:24Z","updated_at":"2018-05-03T13:42:31Z","closed_at":null,"author_association":"NONE","body":"I'm hoping someone can clarify intent and correct behavior when loading a document using document.open.\r\n\r\nStep 23 of https://html.spec.whatwg.org/multipage/webappapis.html#dom-document-open says to set the URL of the open()ed document to that of the \"responsible document\" and we do that by setting the URL from the document we're loading. However, if the responsible document has a fragment identifier, that gets set on the document.open(). This is problematic for the empty fragment which tries to scroll the iframe into view (the scroll into view algorithm specified to use for fragment navigation is recursive for frames). So any page loaded with an empty fragment will always try to scroll any document.open()'d iframes into view.\r\n\r\nShould the document-open algorithm specify we should clear fragments? I've noticed a frame loaded via document.open in Firefox keeps the fragment on document.URL and document.baseURI but window.location is about:blank. In contrast, Chrome keeps the URL with fragment on window.location (as well as document.{URL,baseURI}. That seems like a discrepancy too but I'm not sure if it's the cause or incidental."},"comment":{"url":"https://api.github.com/repos/whatwg/html/issues/comments/386299678","html_url":"https://github.com/whatwg/html/issues/2555#issuecomment-386299678","issue_url":"https://api.github.com/repos/whatwg/html/issues/2555","id":386299678,"user":{"login":"annevk","id":1544111,"avatar_url":"https://avatars0.githubusercontent.com/u/1544111?v=4","gravatar_id":"","url":"https://api.github.com/users/annevk","html_url":"https://github.com/annevk","followers_url":"https://api.github.com/users/annevk/followers","following_url":"https://api.github.com/users/annevk/following{/other_user}","gists_url":"https://api.github.com/users/annevk/gists{/gist_id}","starred_url":"https://api.github.com/users/annevk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annevk/subscriptions","organizations_url":"https://api.github.com/users/annevk/orgs","repos_url":"https://api.github.com/users/annevk/repos","events_url":"https://api.github.com/users/annevk/events{/privacy}","received_events_url":"https://api.github.com/users/annevk/received_events","type":"User","site_admin":false},"created_at":"2018-05-03T13:42:31Z","updated_at":"2018-05-03T13:42:31Z","author_association":"OWNER","body":"FWIW, it seems that Edge has the same behavior. Firefox and Safari however both keep the fragment."}}
{"actor":{"display_login":"annevk"}}