MCPcopy Create free account
hub / github.com/Stranger6667/css-inline / get_css_inline

Method get_css_inline

css-inline/src/html/attributes.rs:185–193  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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)]

Callers 1

should_skip_elementMethod · 0.80

Calls 1

iterMethod · 0.80

Tested by

no test coverage detected