(&self, needle: &QualName)
| 162 | } |
| 163 | |
| 164 | pub(crate) fn find(&self, needle: &QualName) -> Option<&str> { |
| 165 | self.attributes.iter().find_map(|probe| { |
| 166 | if probe.name == *needle { |
| 167 | Some(&*probe.value) |
| 168 | } else { |
| 169 | None |
| 170 | } |
| 171 | }) |
| 172 | } |
| 173 | |
| 174 | /// Checks if the attributes map contains a given local name. |
| 175 | pub(crate) fn contains(&self, local: html5ever::LocalName) -> bool { |
no test coverage detected