{"json_modified": "2016-09-07T23:03:47.523779", "uuid": "d64d649e-70d5-49f5-b594-b9f27daf6cbb", "title": "Range.createContextualFragment()", "url": "/en-US/docs/Web/API/Range/createContextualFragment", "tags": ["API", "Reference", "DOM Reference", "Range", "R\u00e9f\u00e9rence", "DOM", "Method"], "translations": [{"uuid": "db50ced1-755a-48d5-a72e-ce28742db93a", "title": "range.createContextualFragment", "url": "/it/docs/Web/API/Range/createContextualFragment", "tags": [], "summary": "Restituisce un frammento di documento.", "localization_tags": [], "locale": "it", "last_edit": "2015-02-23T17:19:51", "review_tags": []}], "modified": "2016-09-07T23:03:47", "label": "Range.createContextualFragment()", "localization_tags": [], "locale": "en-US", "id": 7466, "last_edit": "2016-09-07T23:03:43", "summary": "The Range.createContextualFragment()
method returns a DocumentFragment
by invoking the HTML fragment parsing algorithm or the XML\u00a0fragment parsing algorithm with the start of the range (the parent of the selected node) as the context node. The HTML\u00a0fragment parsing algorithm is used if the range belongs to a Document
whose HTMLness bit is set. In the HTML case, if the context node would be html
, for historical reasons the fragment parsing algorithm is invoked with body
as the context instead.", "sections": [{"id": "Syntax", "title": "Syntax"}, {"id": "Parameters", "title": "Parameters"}, {"id": "Example", "title": "Example"}, {"id": "Specification", "title": "Specification"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "See_also", "title": "See also"}], "slug": "Web/API/Range/createContextualFragment", "review_tags": []}