Re: [whatwg/dom] Editorial: cleanup "create an element" (PR #1331)

@annevk commented on this pull request.



> @@ -6306,16 +6303,12 @@ value of these steps:
 <p class=note>User agents could optimize <a for=Element>qualified name</a> and
 <a for=Element>HTML-uppercased qualified name</a> by storing them in internal slots.
 
-<p>To
-<dfn export id=concept-create-element lt="create an element|creating an element">create an element</dfn>,
-given a <var>document</var>, <var>localName</var>, <var>namespace</var>, and optional
-<var>prefix</var>, <var>is</var>, and <var>synchronous custom elements flag</var>, run these steps:
+<p>To <dfn export id=concept-create-element>create an element</dfn>, given a <a for=/>document</a>

`<a for=/>document</a>` is probably better for future proofing. Just in case something gets a document member.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1331#discussion_r1882389852
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/pull/1331/review/2500033595@github.com>

Received on Thursday, 12 December 2024 15:36:47 UTC