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

Function is_table_element

css-inline/src/html/serializer.rs:24–29  ·  view source on GitHub ↗
(name: &LocalName)

Source from the content-addressed store, hash-verified

22/// Check if an element is a table element (supports percentage values).
23#[inline]
24fn is_table_element(name: &LocalName) -> bool {
25 matches!(
26 *name,
27 local_name!("table") | local_name!("td") | local_name!("th")
28 )
29}
30
31/// Extracted dimension value for HTML attribute.
32#[derive(Clone, Copy)]

Callers 1

start_elemMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected