From 1f2f78777035a0dac3e277dc3227a4851a9778b3 Mon Sep 17 00:00:00 2001 From: PizzasBear <43722034+PizzasBear@users.noreply.github.com> Date: Mon, 1 Jan 2024 13:39:43 +0200 Subject: [PATCH] Update `Element.setAttribute` exception description (#31445) * Update `Element.setAttribute` exception description * Update files/en-us/web/api/element/setattribute/index.md --------- Co-authored-by: Jean-Yves Perrier --- files/en-us/web/api/element/setattribute/index.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/en-us/web/api/element/setattribute/index.md b/files/en-us/web/api/element/setattribute/index.md index bacffa925b837d4..dcadaafc1c3a430 100644 --- a/files/en-us/web/api/element/setattribute/index.md +++ b/files/en-us/web/api/element/setattribute/index.md @@ -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