pl.wendigo.chrome.domain.dom / SetAttributesAsTextRequest

SetAttributesAsTextRequest

data class SetAttributesAsTextRequest (source)

Represents request frame that can be used with DOM.setAttributesAsText method call.

Sets attributes on element with given id. This method is useful when user edits some existing attribute value and types in several attribute name/value pairs.

Constructors

<init>

SetAttributesAsTextRequest(nodeId: NodeId, text: String, name: String? = null)

Represents request frame that can be used with DOM.setAttributesAsText method call.

Properties

name

val name: String?

Attribute name to replace with new attributes derived from text in case text parsed successfully.

nodeId

val nodeId: NodeId

Id of the element to set attributes for.

text

val text: String

Text with a number of attributes. Will parse this text using HTML parser.