Home / Function/ renderRandomlyCasedHTMLAttributesChecks() — astro Function Reference

renderRandomlyCasedHTMLAttributesChecks() — astro Function Reference

Architecture documentation for the renderRandomlyCasedHTMLAttributesChecks() function in render-html.test.js from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  c551503a_5b42_ca24_6b08_d6531bcb0ce3["renderRandomlyCasedHTMLAttributesChecks()"]
  fd390267_3583_702c_81b1_1b4c55b1ead2["render-html.test.js"]
  c551503a_5b42_ca24_6b08_d6531bcb0ce3 -->|defined in| fd390267_3583_702c_81b1_1b4c55b1ead2
  style c551503a_5b42_ca24_6b08_d6531bcb0ce3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/integrations/markdoc/test/render-html.test.js lines 184–205

function renderRandomlyCasedHTMLAttributesChecks(html) {
	const { document } = parseHTML(html);

	const td1 = document.querySelector('#td1');
	const td2 = document.querySelector('#td1');
	const td3 = document.querySelector('#td1');
	const td4 = document.querySelector('#td1');

	// all four <td>'s which had randomly cased variants of colspan/rowspan should all be rendered lowercased at this point

	assert.equal(td1.getAttribute('colspan'), '3');
	assert.equal(td1.getAttribute('rowspan'), '2');

	assert.equal(td2.getAttribute('colspan'), '3');
	assert.equal(td2.getAttribute('rowspan'), '2');

	assert.equal(td3.getAttribute('colspan'), '3');
	assert.equal(td3.getAttribute('rowspan'), '2');

	assert.equal(td4.getAttribute('colspan'), '3');
	assert.equal(td4.getAttribute('rowspan'), '2');
}

Domain

Subdomains

Frequently Asked Questions

What does renderRandomlyCasedHTMLAttributesChecks() do?
renderRandomlyCasedHTMLAttributesChecks() is a function in the astro codebase, defined in packages/integrations/markdoc/test/render-html.test.js.
Where is renderRandomlyCasedHTMLAttributesChecks() defined?
renderRandomlyCasedHTMLAttributesChecks() is defined in packages/integrations/markdoc/test/render-html.test.js at line 184.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free