Get the value of the attribute with the given local name, if it exists.
(&self, local: html5ever::LocalName)
| 178 | |
| 179 | /// Get the value of the attribute with the given local name, if it exists. |
| 180 | pub(crate) fn get(&self, local: html5ever::LocalName) -> Option<&str> { |
| 181 | let needle = QualName::new(None, ns!(), local); |
| 182 | self.find(&needle) |
| 183 | } |
| 184 | |
| 185 | pub(crate) fn get_css_inline(&self) -> Option<&str> { |
| 186 | self.attributes.iter().find_map(|probe| { |