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

Method get_by_id

css-inline/src/html/document.rs:188–190  ·  view source on GitHub ↗
(&self, id: &LocalName)

Source from the content-addressed store, hash-verified

186 /// Lookup an element by its ID attribute value.
187 #[inline]
188 pub(crate) fn get_by_id(&self, id: &LocalName) -> Option<NodeId> {
189 self.by_id.get(id).copied()
190 }
191
192 /// Lookup elements by class name.
193 #[inline]

Callers 1

selectFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected