You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creates an instance of the element for the specified tag.
355
+
@param tagName The name of an element.
356
+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/createElement)
357
+
*/
358
+
@send
359
+
externalcreateElement2: (
360
+
document,
361
+
~localName: string,
362
+
~options: elementCreationOptions=?,
363
+
) =>element="createElement"
364
+
353
365
/**
354
366
Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName.
355
367
@@ -371,7 +383,31 @@ external createElementNS: (
371
383
document,
372
384
~namespace: string,
373
385
~qualifiedName: string,
374
-
~options: unknown=?,
386
+
~options: string=?,
387
+
) =>element="createElementNS"
388
+
389
+
/**
390
+
Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName.
391
+
392
+
If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown.
393
+
394
+
If one of the following conditions is true a "NamespaceError" DOMException will be thrown:
395
+
396
+
localName does not match the QName production.
397
+
Namespace prefix is not null and namespace is the empty string.
398
+
Namespace prefix is "xml" and namespace is not the XML namespace.
399
+
qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace.
400
+
namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns".
401
+
402
+
When supplied, options's is can be used to create a customized built-in element.
403
+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/createElementNS)
0 commit comments