Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Oct 17, 2021. It is now read-only.

Element

mattt edited this page Oct 17, 2021 · 4 revisions

Element

public final class Element: Node 

Inheritance

Node

Initializers

init(name:attributes:)

public convenience init(name: String, attributes: [String: String] = [:]) 

init?(rawValue:)

public required init?(rawValue: UnsafeMutableRawPointer?) 

init(name:attributes:children:)

public convenience init(name: String, attributes: [String: String] = [:], @DOMBuilder children builder: () -> Node = { DocumentFragment() }) 

Properties

document

public var document: Document? 

name

public var name: String 

namespace

public var namespace: Namespace? 

namespaceDefinitions

public var namespaceDefinitions: [Namespace] 

Methods

append(sibling:)

public func append(sibling node: Node) 

prepend(sibling:)

public func prepend(sibling node: Node) 

replace(with:)

public func replace(with node: Node) 

insert(child:)

public func insert(child node: Node) 

wrap(inside:)

public func wrap(inside element: Element) 

remove()

public func remove() 

search(xpath:)

public func search(xpath: XPath.Expression) -> [Element] 

evaluate(xpath:)

public func evaluate(xpath: XPath.Expression) -> XPath.Object? 

search(xpath:)

public func search(xpath: XPath.Expression) -> [Element] 

evaluate(xpath:)

public func evaluate(xpath: XPath.Expression) -> XPath.Object? 
Types
Protocols
Global Functions
Extensions

Clone this wiki locally

Morty Proxy This is a proxified and sanitized view of the page, visit original site.