---
title: "hasAttributeNS(_:localName:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/domelement/hasattributens(_:localname:)"
---

# hasAttributeNS(_:localName:)

## Declaration

```swift
func hasAttributeNS(_ namespaceURI: String!, localName: String!) -> Bool
```
