(&self)
| 183 | } |
| 184 | |
| 185 | pub(crate) fn get_css_inline(&self) -> Option<&str> { |
| 186 | self.attributes.iter().find_map(|probe| { |
| 187 | if probe.name.local == *CSS_INLINE_ATTRIBUTE { |
| 188 | Some(&*probe.value) |
| 189 | } else { |
| 190 | None |
| 191 | } |
| 192 | }) |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | #[cfg(test)] |
no test coverage detected