> Of course not: > > <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" > "http://www.w3.org/TR/html4/strict.dtd"> > <html> > <head><title></title></head> > <body foo="bar"> > <script type="text/javascript"> > // writes "CSS1Compat" (would print "BackCompat" in Quirks) > document.write(document.compatMode); > </script> > </body> > </html> >
but this document does not pass validation - "Error found while checking this document as HTML 4.01 Strict!" what does this mean for the browser and why should I well form my document if tere is not difference correct it or not - its in every case strict document!? > Nevertheless, try not to use custom attributes, unless you want to run > into troubles later on (e.g. remember that the entire DOM in IE is > implemented in such way that there's no distinction between element > attributes and properties). > I dont fully understand what you mean - "> e.g. remember that the entire DOM in IE is > implemented in such way that there's no distinction between element > attributes and properties)." and how should I do in case when I need to somewhere to storemetadata about every element in a form to make some validation or save their states? or manipulate with them in case of some rules state in my bussines rules???? Earlie you sad "It is indeed useful" about custom attributes and now you tell me not to use them ?! What should I do instead of storin some metadat in elements custom attributes??? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---