---
title: "queryCommandState(_:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/domdocument/querycommandstate(_:)"
---

# queryCommandState(_:)

## Declaration

```swift
func queryCommandState(_ command: String!) -> Bool
```
