mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:38:11 +00:00
LibWeb: Port attribute change steps from DeprecatedFlyString
This commit is contained in:
parent
b337b4370a
commit
7e9a40dbad
4 changed files with 6 additions and 6 deletions
|
@ -18,7 +18,7 @@ HTMLSlotElement::HTMLSlotElement(DOM::Document& document, DOM::QualifiedName qua
|
|||
// https://dom.spec.whatwg.org/#ref-for-concept-element-attributes-change-ext
|
||||
add_attribute_change_steps([this](auto const& local_name, auto const& old_value, auto const& value, auto const& namespace_) {
|
||||
// 1. If element is a slot, localName is name, and namespace is null, then:
|
||||
if (local_name == AttributeNames::name && namespace_.is_null()) {
|
||||
if (local_name == AttributeNames::name && !namespace_.has_value()) {
|
||||
// 1. If value is oldValue, then return.
|
||||
if (value == old_value)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue