Skip to content

Commit

Permalink
Update Element.setAttribute exception description (#31445)
Browse files Browse the repository at this point in the history
* Update `Element.setAttribute` exception description

* Update files/en-us/web/api/element/setattribute/index.md

---------

Co-authored-by: Jean-Yves Perrier <[email protected]>
  • Loading branch information
PizzasBear and teoli2003 authored Jan 1, 2024
1 parent 06dbf9c commit 1f2f787
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions files/en-us/web/api/element/setattribute/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ None ({{jsxref("undefined")}}).
### Exceptions

- `InvalidCharacterError` {{domxref("DOMException")}}
- : The specified attribute `name` contains one or more characters which are
not valid in attribute names.
- : Thrown if the [`name`](#name) value is not a valid [XML name](https://www.w3.org/TR/REC-xml/#dt-name); for example, it starts with a number, a hyphen, or a period, or contains characters other than alphanumeric characters, underscores, hyphens, or periods.

## Examples

Expand Down

0 comments on commit 1f2f787

Please sign in to comment.