HTML/XML limit for maximum "src" attribute size
Possible Duplicate:
What is the maximum length of a URL?
What is the maximum limit on say img "src" path in HTML/XML? Is this mentioned in any specification that I can look at? For eg following img tag is what I'm specifically concerned about:
img class="frame-1" src="image/Blue%20hills12345678012345678.jpg" alt="Blue%20hills123456780123456789012345678901234567891111aa.jpg"
According to the HTML spec, the src
attribute contains a URI (usually a URL). There's, AFAIK, no standard max bound on the size of a URI, but see this answer for some practical limits.
The specifications doesn't limit the size of an URL, but browsers do.
Older versions of Internet Explorer has the shortest limitation, at about 2048 characters.
链接地址: http://www.djcxy.com/p/7270.html上一篇: 什么是URL的最大可能长度?