pl.wendigo.chrome.api.dom / SetAttributesAsTextRequest

SetAttributesAsTextRequest

data class SetAttributesAsTextRequest (source)

Represents request frame that can be used with DOM#setAttributesAsText operation 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.

Link
DOM#setAttributesAsText method documentation.

See Also

DOMOperations.setAttributesAsText

Constructors

<init>

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

Represents request frame that can be used with DOM#setAttributesAsText operation 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.