a11yTips — Ensure elements do not contain duplicate…

Ensure elements do not contain duplicate attributes

no. 017

Make sure attributes are not repeated in any given HTML element

Browsers and other user agents, including assistive technologies, can accurately interpret HTML content as long as attributes within elements are used according to the HTML specification. In other words, as long as each HTML attribute is only used once in any given element, as potential problems may easily arise, when developers maintain different and potentially conflicting attributes values for a single HTML element. The goal is to avoid duplication errors that might cause assistive technologies to inaccurately interpret the markup and lead to misleading or false information conveyed to users (for example, overwriting the first attribute value by a second that potentially conveys the wrong information, or vice versa).

To do this, simply make sure the parsing of the document runs smoothly by verifying that every attribute in any given element is only used once. Check this manually, or rely on a validation service such as the W3C Validator to make sure the markup does not contain this type of errors. When HTML documents are free of such duplication errors, the interpretation or parsing by user agents, including assistive technologies such as screen [...]

Read article at dboudreau.tumblr.com

Article Taxonomies

Categories:
Fatal error: Uncaught Error: Object of class WP_Error could not be converted to string in /home/webable/www/www/wp-content/themes/webable/content-mcm.php:65 Stack trace: #0 /home/webable/www/www/wp-includes/template.php(812): require() #1 /home/webable/www/www/wp-includes/template.php(745): load_template('/home/webable/w...', false, Array) #2 /home/webable/www/www/wp-includes/general-template.php(206): locate_template(Array, true, false, Array) #3 /home/webable/www/www/wp-content/themes/webable/single-mcm_article.php(15): get_template_part('content-mcm') #4 /home/webable/www/www/wp-includes/template-loader.php(106): include('/home/webable/w...') #5 /home/webable/www/www/wp-blog-header.php(19): require_once('/home/webable/w...') #6 /home/webable/www/www/index.php(17): require('/home/webable/w...') #7 {main} thrown in /home/webable/www/www/wp-content/themes/webable/content-mcm.php on line 65