[Webkit-unassigned] [Bug 276590] Make`form` (HTMLFormElement) nullable across HTML Interfaces consistently

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 15 09:38:16 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=276590

Anne van Kesteren <annevk at annevk.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sam at webkit.org

--- Comment #1 from Anne van Kesteren <annevk at annevk.nl> ---
So

> document.createElement("textarea").form == null

is true, so this already works well.

I suppose an ideal fix would be to fix the binding layer to not allow for returning nullptr when IDL does not allow for that. I.e., make the following in combination with HTMLTextAreaElement's current IDL not compile:

> HTMLFormElement* form() const { return m_form.get(); }

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240715/7aa99e05/attachment.htm>


More information about the webkit-unassigned mailing list