Skip to content
This repository was archived by the owner on Oct 17, 2021. It is now read-only.

Element_CloningBehavior

mattt edited this page Mar 27, 2020 · 3 revisions

Element.CloningBehavior

public enum CloningBehavior

Inheritance

Int32

Enumeration Cases

default

case default

recursive

do a recursive copy (properties, namespaces and children when applicable)

case recursive

shallow

copy properties and namespaces (when applicable)

case shallow

Initializers

init(name:)

public convenience init(name: String)

init?(rawValue:)

public required init?(rawValue: UnsafeMutableRawPointer)

Properties

document

var document: Document?

name

var name: String

Methods

append(sibling:)

public func append(sibling node: Node)

insert(child:)

public func insert(child node: Node)

prepend(sibling:)

public func prepend(sibling node: Node)

remove()

public func remove()

replace(with:)

public func replace(with node: Node)

wrap(inside:)

public func wrap(inside element: Element)
Types
Protocols
Global Functions
Extensions

Clone this wiki locally