I have a basic input tag with no maxlength attribute defined:<input id="foo" type="text" />
Trying to get the maxlength attribute in different browsers with the code document.getElementById("foo").maxLength
returns the following values:
- Chrome(73), Edge: -1
- IE(11): 2147483647
console.log(document.getElementById("foo").maxLength);
<input id="foo" type="text"/>
Why is this happening if the default value of maxlenght is 524288 according to https://www.w3schools.com/tags/att_input_maxlength.asp ?