2013-04-13 3:55, Barry Margolin wrote:
>> <
http://www.aarp.org/health/conditions-treatments/info-04-2013/common-ailments
>> -remedies.2.html>
>>
>> that must have more than a half-dozen DIV items all with ID equal to
>> "aarp_main_n_textimage".
>>
>> Is that suitable? And if, as I suspect, it is not, how my I tactfully, as
>> an HTML-aware AARP member, rub their noses in that, so they clean it up?
>
> If there's a webmaster address on the Contact Us page, you could try
> sending there.
They have a "Contact Us" link in the "WHO WE ARE" part of their
hypertrophic footer. But I would not bother; I have rarely seen any
feedback to web site admin have any positive effect (sometimes you get
even a response, but just telling they won't fix anything).
> But unless it actually causes some operational failure with common
> browsers, I wouldn't expect them to give fixing it a high priority.
Well, a multiple id value is a gross error, but it normally has no
effect if the id value is not actually used for anything. It is
comparable to assigning the same Social Security Number to dozens of
people in a country, without having any social security system or any
other use for SSN.
If the id value is used in a URL fragment (#aarp_main_n_textimage), in
link to a particular location on the page (internally or externally),
the effect is undefined, as it is an error.
If the id value is used in JavaScript to access an element, as in
document.getElementById('aarp_main_n_textimage'), the effect is undefined.
If the id value is used in an id selector in CSS,
#aarp_main_n_textimage, the effect is undefined.
(In practice browsers may treat the reference as referring to the first
element with the id attribute, or to no element, or a JavaScript error
message might be shown, though with normal settings it will only appear
in the error console.)
These are the basic used of an id attribute value. There might be others
that I cannot imagine right now (when it's about <div> elements). If the
value is not used in any way, the user won't notice anything.
--
Yucca,
http://www.cs.tut.fi/~jkorpela/