mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Add a query-selector fast path for #id foo.
MozReview-Commit-ID: DkrLcfQLPga
This commit is contained in:
parent
ea8f493ae6
commit
eea8ecd345
2 changed files with 98 additions and 58 deletions
|
@ -147,7 +147,8 @@ pub trait TDocument : Sized + Copy + Clone {
|
|||
/// Returns the quirks mode of this document.
|
||||
fn quirks_mode(&self) -> QuirksMode;
|
||||
|
||||
/// Get a list of elements with a given ID in this document.
|
||||
/// Get a list of elements with a given ID in this document, sorted by
|
||||
/// document position.
|
||||
///
|
||||
/// Can return an error to signal that this list is not available, or also
|
||||
/// return an empty slice.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue