Iterate over `href` attribute values of `link[rel~=stylesheet]` tags.
(&self)
| 125 | |
| 126 | /// Iterate over `href` attribute values of `link[rel~=stylesheet]` tags. |
| 127 | pub(crate) fn stylesheets(&self) -> impl Iterator<Item = &str> + '_ { |
| 128 | self.linked_stylesheets.iter().filter_map(|node_id| { |
| 129 | self[*node_id] |
| 130 | .as_element() |
| 131 | .and_then(|data| data.attributes.get(local_name!("href"))) |
| 132 | }) |
| 133 | } |
| 134 | |
| 135 | /// Add a new linked stylesheet location. |
| 136 | pub(super) fn add_linked_stylesheet(&mut self, node: NodeId) { |