Re: SCR21: Using functions of the Document Object Model (DOM) to add content to a page

Hi.

My first comment was here:
http://lists.w3.org/Archives/Public/public-comments-wcag20/2007Jun/0061.html

I can't find any newer version of "Techniques for WCAG 2.0" then this:
http://www.w3.org/TR/2007/WD-WCAG20-TECHS-20070517/#SCR21

And I don't see any corrections there!

The function "validateNumbers" still contains an error (one might call 
it a warning). I believe that if it is to be a really good example it 
should be written strictly by the book. And so you should return true at 
the end of this function.

More importantly - the function "addError" still contains a syntax 
error! If you look near the end of it - there is an excessive "}". It is 
excessive because by logically analysing it should be:
   if (strID.length > 0)
      objAnchor.setAttribute('id', strID);
   objListItem.appendChild(objAnchor);
   return objListItem;

Notice no "}" that would much the if above - I believe the if was meant 
to end at the end of line.

----------------------------------------------------
"Ragtime" rewelacyjny musical w 2 aktach 
Premiera w Gliwickim Teatrze Muzycznym 
już 23 listopada. Musisz to zobaczyć!
Kliknij: http://klik.wp.pl/?adr=http%3A%2F%2Fcorto.www.wp.pl%2Fas%2FRagtime-musical.html&sid=83

Received on Sunday, 4 November 2007 01:16:45 UTC