Re:Snake game in a data: URI
by bytex64 on Friday December 09, 2011 @03:35AM
(#3333064)
I read somewhere that most browsers have a practical limit to what you can paste in. What I should have written was that it would fit in an address bar. shrug
[ Parent
| on HN ]
I agree, RFC2397 shows a bunch of things that can limit the length of a data URL.
The "data:" URL scheme is only useful for short values. Note that
some applications that use URLs may impose a length limit; for
example, URLs embedded within <A> anchors in HTML have a length limit
determined by the SGML declaration for HTML [RFC1866]. The LITLEN
(1024) limits the number of characters which can appear in a single
attribute value literal, the ATTSPLEN (2100) limits the sum of all
lengths of all attribute value specifications which appear in a tag,
and the TAGLEN (2100) limits the overall length of a tag.
These are references to (theoretical) limitations in HTML/SGML. They are not limitations of the data URL scheme.Also note that bytex64’s page doesn’t use a link; it just shows the data URL so you can copy and paste it. Either way, none of the above limitations apply here.
</nitpick>
Re:Snake game in a data: URI
by maximusprime on Friday December 09, 2011 @05:09AM
(#3333233)
afaik it's usually about 4k but more in modern browsers.