---
title: "HTMLOrSVGElement | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Interface HTMLOrSVGElement

interface HTMLOrSVGElement {  
    [autofocus](#autofocus): boolean;  
    [dataset](#dataset): [DOMStringMap](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.DOMStringMap/);  
    [nonce](#nonce): string;  
    [tabIndex](#tabindex): number;  
    [blur](#blur-1)(): void;  
    [focus](#focus-1)(options?: [FocusOptions](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.FocusOptions/)): void;  
}

#### Hierarchy ([View Summary](https://docs.maptiler.com/sdk-js/api-reference/hierarchy/#Externals.HTMLOrSVGElement))

-   HTMLOrSVGElement
    -   [HTMLElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLElement/)
    -   [SVGElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.SVGElement/)
    -   [MathMLElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.MathMLElement/)

##### Index

### Properties[](#properties)

[autofocus](#autofocus) [dataset](#dataset) [nonce](#nonce) [tabIndex](#tabindex)

### Methods[](#methods)

[blur](#blur) [focus](#focus)

## Properties[](#properties-1)

### autofocus[](#autofocus)

autofocus: boolean

[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autofocus)

### `Readonly`dataset[](#dataset)

dataset: [DOMStringMap](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.DOMStringMap/)

[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dataset)

### nonce[](#nonce)

nonce: string

[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/nonce)

### tabIndex[](#tabindex)

tabIndex: number

[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/tabIndex)

## Methods[](#methods-1)

### blur[](#blur)

-   blur(): void[](#blur-1)
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/blur)
    
    #### Returns void
    

### focus[](#focus)

-   focus(options?: [FocusOptions](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.FocusOptions/)): void[](#focus-1)
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/focus)
    
    #### Parameters
    
    -   `Optional`options: [FocusOptions](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.FocusOptions/)
    
    #### Returns void
