style: Add a query-selector fast path for #id foo.

MozReview-Commit-ID: DkrLcfQLPga
This commit is contained in:
Emilio Cobos Álvarez 2017-10-27 14:00:53 +02:00
parent ea8f493ae6
commit eea8ecd345
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 98 additions and 58 deletions

View file

@ -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.