Welcome to the Treehouse Community
Looking to learn something new?
Uncaught NoModificationAllowedError [...] The 'input' element does not support text insertion.
I'm getting this error message logged to the console.
"Uncaught NoModificationAllowedError: Failed to set the 'innerText' property on 'HTMLElement': The 'input' element does not support text insertion."
It says the problem is on line 38 of my .js file. That is 'label.innerText = taskString'. Up to this point the console has told me where the problem has been and I've fixed it. But I can't see what's different about my code and Chalkley's D:
Is there anything wrong here? Lines 30-38 of my .js file.
Or, is there anything specific, given my error message, that I should be looking for elsewhere in my .js file?
checkBox.type = "checkbox"; editInput.type = "text"; editButton.innerText = "Edit"; editButton.className = "edit"; deleteButton.innerText = "Delete"; deleteButton.className = "delete"; label.innerText = taskString; }
Kieran Gibbons17,434 Points
i was having the same isssue just now. Try checking this bit:- //input (checkbox) var checkBox = document.createElement("input"); // checkbox //label var label = document.createElement("label"); //input (text) var editInput = document.createElement("input"); // text //button.edit var editButton = document.createElement("button"); ////////I had this set as "input" originally///////////// //button.delete var deleteButton = document.createElement("button");