W3C

Edit comment LC-736 for Accessibility Guidelines Working Group

Quick access to

Previous: LC-713 Next: LC-1331

Comment LC-736
:
Commenter: Maciej Jaros <egil@wp.pl>

or
Resolution status:

Part of Item:
Comment Type: TE
Comment (including rationale for proposed change):

This is about:
http://www.w3.org/TR/WCAG20-SCRIPT-TECHS/#doc-write

I think the last line of the Example:
parentelem.appendChild(list);
should be:
document.menu.appendChild(list);

If I understood correctly in the Deprecated Example <p> and <h1> were
added to root element (or at least some current element):
document.write(\"<h1>Welcome to my site</h1>\");
document.write(\"<p>Lorem ipsum dolor sit amet\");
but the list was added specifically to document.menu:
document.menu.innerHTML = \"<ul><li><a href=\"foo.html\">foo</a>\";

If I misunderstood something then please add some more comment to that example.



Proposed Change:
(space separated ids)
(Please make sure the resolution is adapted for public consumption)


Developed and maintained by Dominique Hazaël-Massieux (dom@w3.org).
$Id: 736.html,v 1.1 2017/08/11 06:41:49 dom Exp $
Please send bug reports and request for enhancements to w3t-sys.org