mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:18:12 +00:00
LibWeb: Store HTMLFormElement associated elements as nonnull GC pointers
We never store null elements in this list, so let's avoid confusion and store the elements as NonnullGCPtr.
This commit is contained in:
parent
c5f8f940f0
commit
fb270289a4
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ private:
|
|||
// https://html.spec.whatwg.org/multipage/forms.html#locked-for-reset
|
||||
bool m_locked_for_reset { false };
|
||||
|
||||
Vector<JS::GCPtr<HTMLElement>> m_associated_elements;
|
||||
Vector<JS::NonnullGCPtr<HTMLElement>> m_associated_elements;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/forms.html#past-names-map
|
||||
struct PastNameEntry {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue