473,395 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

length of html attribute

Hi,

I did not find any length limit for attributes. Is there any? Maybe
"inherited" by SGML?

Best Regards,

Oliver

May 18 '06 #1
3 1947
Oliver Block wrote:
I did not find any length limit for attributes. Is there any? Maybe
"inherited" by SGML?


The SGML declaration (http://www.w3.org/TR/html40/sgml/sgmldecl.html)
declares a maximum length of 65536 characters, which is the largest value
that SGML allows and which comes closest to the 'intended limit' of 'no
limit'.
If you write a HTML parser, do not implement size limitations. If you are
authoring HTML code, you'll win a prize, if you manage to exceed the 64k
limit with meaningful data...

--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://pink.odahoda.de/
May 18 '06 #2

Benjamin Niemann wrote:
If you write a HTML parser, do not implement size limitations. If you are
authoring HTML code, you'll win a prize, if you manage to exceed the 64k
limit with meaningful data...


Been there, done that.

For metadata embedding, it's (reasonably) common practice to embed
annotations and descriptions as attributes that are lifted from a
Dublin Core (or similar) "pseudo-namespace". These aren't part of valid
HTML, but XML namespacing isn't really available to the web yet and
it's long-established web practice that extra attributes are silently
and safely ignored by user-agents that don't understand them.

Once you're adding annotation or metadata, it's not hard to start
breaking 64k length limits, if you're unaware of the issue.

May 19 '06 #3
Benjamin Niemann wrote:
If you write a HTML parser, do not implement size limitations. If you are
authoring HTML code, you'll win a prize, if you manage to exceed the 64k
limit with meaningful data...


Writing a CMS, it's often the case that you'll have fairly big chunks of
data in the value attributes for hidden INPUT elements.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

May 20 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dan Flynn | last post by:
I am working on a project that requires me to check the number of rows in a table with the same HTML "ID" value. I do this in my code with: i = document.all(rowid).length However, if the...
6
by: Boyd Reilly | last post by:
I have a form that has the user pick the type of question he will answer. The input field will be a text, numeric or date type. So, after the question is answered, I need to change the input...
44
by: Jim M | last post by:
I have had great success with using <iframe> with overflow-y set to auto. I can get a similar look with the <iframe> tag. BUT... In all cases I need to have fixed heights. Is there a way to...
4
by: DU | last post by:
I am looking for opinions on the issue of length of title attribute. First of all, the current HTML 4.01 spec is rather vague on this issue... at least, it isn't explicit nor normative. The HTML...
0
by: Douha | last post by:
Hi all, I have an XML file where all to elements for the data are contained in CDATA sections. I have a schema created that is working right now although it is pretty dumbed down. I have a need...
3
by: active | last post by:
<VBFixedString(50), System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.Unma nagedType.ByValTStr, SizeConst:=50)> Public BusinessName As String txtBusinessName.MaxLength =...
2
by: stealth_spoof | last post by:
Hi People wondering if anyone can help me with a problem I'm having I'm trying to create an array with an unspecified length, the length is based on the result i get from another task in the code...
1
by: Cylix | last post by:
Any way to define the length of a textfield? I have just set all the field with a width so that they look like clear and easy to read, However, When I see the page of mac os, They are totally...
3
by: hug | last post by:
The valid character set for the ID= attribute of html tags is listed here (http://www.htmlhelp.com/reference/html40/attrs.html) but I am having difficulty finding the maximum allowable length of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.