mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Check whether an element is custom in the spec-compliant way (#35960)
* Check whether element is custom in spec-compliant way Signed-off-by: Xiaocheng Hu <xiaochengh.work@gmail.com> * Update tests Signed-off-by: Xiaocheng Hu <xiaochengh.work@gmail.com> --------- Signed-off-by: Xiaocheng Hu <xiaochengh.work@gmail.com>
This commit is contained in:
parent
ea35353e9a
commit
62d6759106
6 changed files with 71 additions and 13 deletions
|
@ -166,7 +166,7 @@ impl Attr {
|
|||
|
||||
MutationObserver::queue_a_mutation_record(owner.upcast::<Node>(), mutation);
|
||||
|
||||
if owner.get_custom_element_definition().is_some() {
|
||||
if owner.is_custom() {
|
||||
let reaction = CallbackReaction::AttributeChanged(
|
||||
name,
|
||||
Some(old_value),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue