IE: The undocumented cache attribute defined for input elements?

I stumbled upon strange behavior in IE (6/7/8) that gets me nuts. Given the following markup:

<input type="text" value="foo" class="bar" cache="yes" send="no" />

Note that the attribute is cacheset to yes. However, IE somehow manages to change the value of the attributes on cache="cache"when rendering the DOM.

So, I wonder if there is an undocumented function that I don't know about? I worked for about an hour, but could not find information about it (even on MSDN).

Note
I know that adding custom attributes is non-standard compatible and that boolean attributes should be marked as attribute="attribute". Nevertheless, I have to deal with them, since they were introduced long before I joined the team. These custom attributes are used in conjunction with javascript to provide a more convenient approach to processing forms (and this works well with Firefox / Safari / Opera / Chrome).

I know that I could just convert these user attributes into x-data attributes that will be introduced with HTML5, but this will require several hours of additional work - a sigh.

I hope I get it. Thanks in advance.
+3
1

<input type="checkbox" checked="checked"/> .. , <input type="checkbox" checked/> , , , XML.

+1

Source: https://habr.com/ru/post/1733172/


All Articles