console.log(document.getElementById('A').outerHTML); /* logs <div id="A">Hi</div>
should be
console.log(document.getElementById('A').outerHTML); /* logs <div id="A"><i>Hi</i></div>
Help get this topic noticed by sharing it on
Twitter,
Facebook, or email.


-
Hello vertigoback,
I have forwarded your question on to our Book Tech staff, so they can help you find a solution. If you ever have any questions or issues with the content of a title,
you can also contact them directly at booktech@oreilly.com or call them at:
1-800-889-8969
or
1-707-827-7019 (outside the USA)
7:30 am to 5:00 PST
Kind regards,
Paul Fichera
Customer Service Representative
O'Reilly Media -
-
The best place to submit errors that you found in a book is on that book's errata page. The errata page for DOM Enlightenment can be found here -
http://oreilly.com/catalog/errata.csp...
Best regards,
Chris Olson
O'Reilly Book Support -