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

Method is_link

css-inline/src/html/element.rs:225–232  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

223
224 #[inline]
225 fn is_link(&self) -> bool {
226 self.name().ns == ns!(html)
227 && matches!(
228 self.name().local,
229 local_name!("a") | local_name!("area") | local_name!("link")
230 )
231 && self.attributes().contains(local_name!("href"))
232 }
233
234 #[inline]
235 fn is_html_slot_element(&self) -> bool {

Callers

nothing calls this directly

Calls 3

nameMethod · 0.80
containsMethod · 0.80
attributesMethod · 0.80

Tested by

no test coverage detected