mirror of
https://github.com/bendtherules/UiQuestions.git
synced 2026-08-18 13:52:50 +00:00
Document Fragment - Add more context to code example
This commit is contained in:
@@ -221,6 +221,7 @@ var fragment = document.createDocumentFragment()
|
||||
// Insert / modify elements in fragment
|
||||
|
||||
// in dom, <div class="outer"/>
|
||||
var outerEle = document.querySelector(".outer")
|
||||
|
||||
outerEle.appendChild(fragment)
|
||||
// This will remove all content from fragment and
|
||||
|
||||
Reference in New Issue
Block a user