ZVON > References > DOM1 Reference

specified (attribute)

Owning interface and usage:  
Attr.specified

Member of these other interfaces :  
none

Readonly:   yes

Type:   Boolean

Description:  
Thanks to this attribute you can find out something about "DTD-background" of tested attribute. In summary: If the attribute has an assigned value in the document then specified is true, and the value is the assigned value. If the attribute has no assigned value in the document and has a default value in the DTD, then specified is false, and the value is the default value in the DTD. If the attribute has no assigned value in the document and has a value of #IMPLIED in the DTD, then the attribute does not appear in the structure model of the document.


Example:
JavaScript:
  var attr = document.createAttribute('temp');
  attr.value = 'temporary';
  var output = attr.specified;
Output:
desired your browser
true



_____________________________________________
Reference Search | Sitemap | XML Glossary       ZVON | Systinet




Related sites:
  • dotNet Slackers - Your latest resource for ASP.NET
  • Dotnet Spider - Outsourcing and Offshore software development in India
  • XML - Xselerator, XSL Editor, BizTalk Utilities, XML Tutorials, Learn XML
  • Planet Source Code - The largest public source code database on the Internet
answering service water softener MSN Alojamiento Web UNLIMITED Web Hosting by HostDepartment
VoIP Internettelefonie Hosted Exchange, SDSL VoIP Internettelefonie AT VoIP Internettelefonie DE