mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +01:00
selectors: Never match ::slotted on <slot>s.
This fixes the test from https://github.com/w3c/web-platform-tests/pull/9212 in Gecko.
This commit is contained in:
parent
bc7dd644f6
commit
61e60a87e5
7 changed files with 36 additions and 7 deletions
|
@ -419,12 +419,6 @@ pub trait TElement
|
|||
/// Return whether this element is an element in the HTML namespace.
|
||||
fn is_html_element(&self) -> bool;
|
||||
|
||||
/// Returns whether this element is a <html:slot> element.
|
||||
fn is_html_slot_element(&self) -> bool {
|
||||
self.get_local_name() == &*local_name!("slot") &&
|
||||
self.is_html_element()
|
||||
}
|
||||
|
||||
/// Return the list of slotted nodes of this node.
|
||||
fn slotted_nodes(&self) -> &[Self::ConcreteNode] {
|
||||
&[]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue