Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibWeb: Normalize getter name for reflected “Element?” IDL types
This change updates the bindings generator for the case defined at https://html.spec.whatwg.org/#reflecting-content-attributes-in-idl-attributes:element; that is, the case “If a reflected IDL attribute has the type T?, where T is either Element or an interface that inherits from Element”. The change “normalizes” the generator behavior for that case — such that the generated code expects a getter with a name of the form used in other cases; e.g., popover_target_element(). Otherwise, without this change, the generator expects a name of the form get_popover_target_element() for that case.
- Loading branch information