<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>One guideline a day &#187; Principle 4: Robust</title>
	<atom:link href="http://www.oneguidelineaday.com/category/principle-4-robust/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.oneguidelineaday.com</link>
	<description>WCAG 2.0 Tutorial</description>
	<lastBuildDate>Thu, 16 Jun 2011 13:27:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Guideline 4.1: Respect the code</title>
		<link>http://www.oneguidelineaday.com/principle-4-robust/guideline-4-1-respect-the-code/</link>
		<comments>http://www.oneguidelineaday.com/principle-4-robust/guideline-4-1-respect-the-code/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 11:02:23 +0000</pubDate>
		<dc:creator>Olga Revilla</dc:creator>
				<category><![CDATA[Principle 4: Robust]]></category>

		<guid isPermaLink="false">http://www.oneguidelineaday.com/?p=331</guid>
		<description><![CDATA[Maximize compatibility with current and future user agents, including assistive technologies. Code must as clean as possible, as well as it must respect the standards. In this way, browsers will be able to render the page. Criterion 4.1.1 Parsing In content implemented using markup languages, elements have complete start and end tags, elements are nested [...]]]></description>
			<content:encoded><![CDATA[<blockquote class="guideline"><p> Maximize compatibility with current and future user agents, including assistive technologies.</p></blockquote>
<p>Code must as clean as possible, as well as it must respect the standards. In this way, browsers will be able to render the page.</p>
<h3>Criterion 4.1.1 Parsing</h3>
<blockquote><p> In content implemented using markup languages, elements have complete start and end tags, elements are nested according to their specifications, elements do not contain duplicate attributes, and any IDs are unique, except where the specifications allow these features.</p></blockquote>
<div class="howto">
<h4>How to. Mandatory techniques</h4>
<ul>
<li>Validate Web pages</li>
<li>Fully conform to specifications</li>
<li>Use HTML according to spec</li>
<li>Ensure that Web pages can be parsed by ensuring that opening and closing tags are used according to specification pr that Web pages are well-formed
</li>
</ul>
</div>
<div class="failures">
<h4>Common Failures</h4>
<ul>
<li>Incorrect use of start and end tags or attribute markup</li>
<li>Duplicating values of type ID</li>
<li>Insufficient information in DOM to determine one-to-one relationships (e.g., between labels with same id) in HTML</li>
<li>Insufficient information in DOM to determine specific relationships in XML</li>
</ul>
</div>
<h3>Criterion 4.1.2 Name, Role, Value</h3>
<blockquote><p>For all user interface components (including but not limited to: form elements, links and components generated by scripts), the name and role can be programmatically determined; states, properties, and values that can be set by the user can be programmatically set; and notification of changes to these items is available to user agents, including assistive technologies.<br />
Note: This success criterion is primarily for Web authors who develop or script their own user interface components. For example, standard HTML controls already meet this success criterion when used according to specification.  </p></blockquote>
<div class="howto">
<h4>How to. Mandatory techniques</h4>
<h5>If using a standard user interface component in a markup language</h5>
<ul>
<li>Use markup features to expose the name and role, allow user-settable properties to be directly set, and provide notification of changes using:
<ul>
<li>HTML form controls and links</li>
<li>Label elements to associate text labels with form controls</li>
<li>the title attribute of the frame and iframe elements</li>
<li>the title attribute to identify form controls when the label element cannot be used</li>
<li>HTML according to spec</li>
<li>Using functions of the Document Object Model (DOM) to add content to a page</li>
</ul>
</li>
</ul>
<h5>If using script or code to re-purpose a standard user interface component in a markup language</h5>
<ul>
<li>Expose the names and roles, allowing user-settable properties to be directly set, and providing notification of changes using functions of the Document Object Model to add content to a page</li>
</ul>
<h5>If using a standard user interface component in a programming technology</h5>
<ul>
<li>Use the accessibility API features of a technology to expose names and roles, to allow user-settable properties to be directly set, and to provide notification of changes</li>
</ul>
<h5>If creating your own user interface component in a programming language</h5>
<ul>
<li>Create components using a technology that supports the accessibility API features of the platforms on which the user agents will be run to expose the names and roles, allow user-settable properties to be directly set, and provide notification of changes</li>
</ul>
<h4>Additional, Advisory Techniques</h4>
<ul>
<li>Providing labels for all form controls that do not have implicit labels</li>
</ul>
</div>
<div class="failures">
<h4>Common Failures</h4>
<ul>
<li>Using script to make div or span a user interface control in HTML.</li>
<li>Implementing custom controls that do not use an accessibility API for the technology, or do so incompletely</li>
<li>Not updating text alternatives when changes to non-text content occur</li>
<li>The association of label and user interface controls not being programmatically determinable</li>
<li>The focus state of a user interface component not being programmatically determinable or no notification of change of focus state available</li>
<li>Not providing names for each part of a multi-part form field</li>
<li>Using null alt on an image where the image is the only content in a link</li>
</ul>
</div>
<h3 class="sources">More info</h3>
<ul class="sources">
<li><a href="http://www.oneguidelineaday.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy53My5vcmcvVFIvVU5ERVJTVEFORElORy1XQ0FHMjAvZW5zdXJlLWNvbXBhdC5odG1s">Understanding Guideline 4.1 Compatible Predictable</a></li>
<li><a href="http://www.oneguidelineaday.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy53My5vcmcvVFIvVU5ERVJTVEFORElORy1XQ0FHMjAvZW5zdXJlLWNvbXBhdC1wYXJzZXMuaHRtbA==">Understanding Success Criterion 4.1.1  [Parsing]</a></li>
<li><a href="http://www.oneguidelineaday.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy53My5vcmcvVFIvVU5ERVJTVEFORElORy1XQ0FHMjAvZW5zdXJlLWNvbXBhdC1yc3YuaHRtbA==">Understanding Success Criterion 4.1.2  [Name, Role, Value]</a></li>
</ul>
 <img src="http://www.oneguidelineaday.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=331" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.oneguidelineaday.com/principle-4-robust/guideline-4-1-respect-the-code/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

