I was often said that rule : “HTML is static”; in other words : HTML code is not intended to be modified locally, except when you use JavaScript or other languages.
However, with HTML5 specifications, there are some exceptions to that [supposed to be] rule. For example, there is the contenteditable attribute.
So my questions are : Does this rule exist officially (from experts) ? And why this rule ? Is this so bad to break that rule ?
I ask these questions because I am developing a JavaScript framework. It lets the developers using HTML attributes to modify the page content on user actions (click, etc.). But when I discussed the principle with some developers, saying that it is a wrong idea by quoting that rule.
I’m not 100% positive, but I can’t find anything in the W3 specification (the official rule book) that says HTML must be static.