mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 02:59:45 +00:00
Bindings: Implement is_supported_property_index in terms of item_value
Greatly simplifying the code :^)
This commit is contained in:
parent
c5c1a8fcc7
commit
9b1af542e7
Notes:
github-actions[bot]
2024-07-26 12:27:15 +00:00
Author: https://github.com/shannonbooth
Commit: 9b1af542e7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/827
34 changed files with 4 additions and 138 deletions
|
@ -98,12 +98,6 @@ void DOMTokenList::associated_attribute_changed(StringView value)
|
|||
append_to_ordered_set(m_token_set, String::from_utf8(split_value).release_value_but_fixme_should_propagate_errors());
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#ref-for-dfn-supported-property-indices%E2%91%A3
|
||||
bool DOMTokenList::is_supported_property_index(u32 index) const
|
||||
{
|
||||
return index < m_token_set.size();
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-domtokenlist-item
|
||||
Optional<String> DOMTokenList::item(size_t index) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue