diff --git a/dom.bs b/dom.bs
index 7751190a..907c7386 100644
--- a/dom.bs
+++ b/dom.bs
@@ -4689,8 +4689,12 @@ invoked, must run these steps:
If is is non-null and definition is null, then throw a
{{NotFoundError}}.
+ Let namespace be the HTML namespace if the context
+ object's content type is "text/html
" or
+ "application/xhtml+xml
", and null otherwise.
+
Let element be the result of creating an element given the
- context object, localName, null, the HTML namespace, is, and
+ context object, localName, null, namespace, is, and
with the synchronous custom elements flag set. Rethrow any exceptions.
If is is non-null, then set an attribute value for element using