arsd-official ~master (2024-10-25T16:17:57Z)
Dub
Repo
Element.replaceChild
arsd
dom
Element
Replaces the given element with a whole group.
Element
replaceChild
(Element find, Element replace)
void
replaceChild
(Element find, Element[] replace)
class
Element
void
replaceChild
(
Element
find
,
Element
[]
replace
)
out { assert (find.parentNode is null); assert (children.length >= replace.length); debug foreach (child; children) assert (child !is find); debug foreach (r; replace) assert (r.parentNode is this); }
Meta
Source
See Implementation
arsd
dom
Element
aliases
classNames
getElementsBySelector
textContent
constructors
this
functions
absoluteLeft
absoluteTop
addChild
addChildren
addClass
addField
addSibling
addSubmitButton
appendChild
appendChildren
appendHtml
appendSibling
appendText
cloneNode
closest
firstInnerText
getAttribute
getElementById
getElementsByClassName
getElementsByTagName
getParent
hasAttribute
hasClass
insertAfter
insertBefore
insertChildAfter
isEmpty
matches
nextInSource
nodeValue
opIndex
optionSelector
parentNode
prependChild
prependSibling
previousInSource
querySelector
querySelectorAll
removeAllChildren
removeAttribute
removeChild
removeChildren
removeClass
removeFromTree
reparent
replaceChild
replaceWith
requireElementById
requireSelector
setAttribute
stealChildren
stripOut
swapNode
toPrettyString
toString
visibleText
wrapIn
writeToAppender
properties
attrs
childElements
childNodes
classList
className
classes
cloned
computedStyle
dataset
directText
firstChild
innerHTML
innerRawSource
innerText
lastChild
nextElementSibling
nextSibling
nodeType
opDispatch
outerHTML
outerText
parentDocument
previousElementSibling
previousSibling
style
tree
static functions
make
structs
ClassListHelper
variables
attributes
expansionHook
hasLayout
offsetHeight
offsetLeft
offsetParent
offsetTop
offsetWidth
tagName
zIndex
Replaces the given element with a whole group.