Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTMLElement.contentEditable should apply the contenteditable attribute. #1463

Closed
mozesstumpf opened this issue Jun 14, 2024 · 1 comment · Fixed by #1757
Closed

HTMLElement.contentEditable should apply the contenteditable attribute. #1463

mozesstumpf opened this issue Jun 14, 2024 · 1 comment · Fixed by #1757
Labels
bug Something isn't working

Comments

@mozesstumpf
Copy link

Describe the bug
When changing the HTMLElement.contentEditable property, the element does not get the contenteditable attribute.

To Reproduce
Repository to reproduce: https://github.com/mozesstumpf/contentEditable-attribute-should-change

test("ContentEditable attribute should change", () => {
	const div = document.createElement("div");

	div.contentEditable = "true";

	// should be passed
	expect(div.getAttribute("contenteditable")).toBe("true");
});

Expected behavior
The contenteditable attribute should be added to the element when the HTMLElement.contentEditable changed.

@capricorn86
Copy link
Owner

Thank you for reporting @mozesstumpf! 🙂

Thanks to @karpiuMG there is a fix in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants