{"action":"created","issue":{"url":"https://api.github.com/repos/jquery/jquery/issues/2085","labels_url":"https://api.github.com/repos/jquery/jquery/issues/2085/labels{/name}","comments_url":"https://api.github.com/repos/jquery/jquery/issues/2085/comments","events_url":"https://api.github.com/repos/jquery/jquery/issues/2085/events","html_url":"https://github.com/jquery/jquery/pull/2085","id":57331237,"number":2085,"title":"Manipulation: buildFragment always uses document of the context","user":{"login":"piotrj","id":9296,"avatar_url":"https://avatars.githubusercontent.com/u/9296?v=3","gravatar_id":"","url":"https://api.github.com/users/piotrj","html_url":"https://github.com/piotrj","followers_url":"https://api.github.com/users/piotrj/followers","following_url":"https://api.github.com/users/piotrj/following{/other_user}","gists_url":"https://api.github.com/users/piotrj/gists{/gist_id}","starred_url":"https://api.github.com/users/piotrj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piotrj/subscriptions","organizations_url":"https://api.github.com/users/piotrj/orgs","repos_url":"https://api.github.com/users/piotrj/repos","events_url":"https://api.github.com/users/piotrj/events{/privacy}","received_events_url":"https://api.github.com/users/piotrj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jquery/jquery/labels/CLA:%20Error","name":"CLA: Error","color":"770000"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-11T15:34:18Z","updated_at":"2015-02-11T15:59:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jquery/jquery/pulls/2085","html_url":"https://github.com/jquery/jquery/pull/2085","diff_url":"https://github.com/jquery/jquery/pull/2085.diff","patch_url":"https://github.com/jquery/jquery/pull/2085.patch"},"body":"buildFragment methods such as createDocumentFragment or createElement.\r\nIt called it on context, but the context could have been some random\r\nnode, not necesarilly document node. This commit fixes that method so it\r\nalways takes the ownerDocument of the context (or the context if it's\r\ndocument itself) and callse the mentioned methods on that"},"comment":{"url":"https://api.github.com/repos/jquery/jquery/issues/comments/73906002","html_url":"https://github.com/jquery/jquery/pull/2085#issuecomment-73906002","issue_url":"https://api.github.com/repos/jquery/jquery/issues/2085","id":73906002,"user":{"login":"markelog","id":945528,"avatar_url":"https://avatars.githubusercontent.com/u/945528?v=3","gravatar_id":"","url":"https://api.github.com/users/markelog","html_url":"https://github.com/markelog","followers_url":"https://api.github.com/users/markelog/followers","following_url":"https://api.github.com/users/markelog/following{/other_user}","gists_url":"https://api.github.com/users/markelog/gists{/gist_id}","starred_url":"https://api.github.com/users/markelog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markelog/subscriptions","organizations_url":"https://api.github.com/users/markelog/orgs","repos_url":"https://api.github.com/users/markelog/repos","events_url":"https://api.github.com/users/markelog/events{/privacy}","received_events_url":"https://api.github.com/users/markelog/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T15:59:32Z","updated_at":"2015-02-11T15:59:32Z","body":"`buildFragment` is called from two places, from `buildFragment` and `parseHTML`.\r\n\r\nIn first case, `ownerDocument` is already extracted.\r\nIn second case, second argument of `parseHTML` is used, which is documented to be a `document` element. Or, if not passed, default `document` is used. \r\n\r\nSo `buildFragment` internally, always receives document as an argument. Whereas `buildFragment` should only be used internally, hence lack of documentation for it.\r\n\r\nWhat problem you trying to solve?"}}