function _fillHexeditDom(hexedit) {
	hexedit.classList.add("hexedit");
	hexedit.tabIndex = -1;

	// Create headers
	const offsetsHeader = document.createElement("div");
	offsetsHeader.classList.add("offsets-header");
	offsetsHeader.innerText = _("Offset (h)");

	const hexviewHeader = document.createElement("div");
	hexviewHeader.classList.add("hexview-header");
	for (let i = 0; i < 16; i++) {
		const span = document.createElement("span");
		span.innerText = i.toString(16).toUpperCase().padStart(2, "0");
		hexviewHeader.appendChild(span);
	}

	const textviewHeader = document.createElement("div");
	textviewHeader.classList.add("textview-header");
	textviewHeader.innerText = _("Decoded Text");

	// Header container
	const headersContainer = document.createElement("div");
	headersContainer.classList.add("hexedit-headers");
	headersContainer.appendChild(offsetsHeader);
	headersContainer.appendChild(hexviewHeader);
	headersContainer.appendChild(textviewHeader);

	// Create content areas
	const offsets = document.createElement("div");
	offsets.classList.add("offsets");

	const hexview = document.createElement("div");
	hexview.classList.add("hexview");

	const textview = document.createElement("div");
	textview.classList.add("textview");

	// Content container
	const contentContainer = document.createElement("div");
	contentContainer.classList.add("hexedit-content");
	contentContainer.appendChild(offsets);
	contentContainer.appendChild(hexview);
	contentContainer.appendChild(textview);

	// Assemble hex editor
	hexedit.appendChild(headersContainer);
	hexedit.appendChild(contentContainer);

	// Assign references
	hexedit.offsets = offsets;
	hexedit.hexview = hexview;
	hexedit.textview = textview;
	hexedit.headersContainer = headersContainer;
	hexedit.contentContainer = contentContainer;

	return hexedit;
}
Fills the hex editor DOM structure.

@param {HTMLElement} hexedit - The DOM element for the hex editor.
@returns {HTMLElement} - The filled hex editor DOM element.