Wrox Programmer Forums
BOOK: Beginning JavaScript 5th Edition
This is the forum to discuss the Wrox book Beginning JavaScript, 5th Edition by Jeremy McPeak; 978-1-118-90333-9
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning JavaScript 5th Edition section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 29th, 2015, 11:49 AM
Registered User
Join Date: Jul 2015
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question Ch. 9 Example 2 Safari behavior

Example 2 in chapter 9, about navigating the DOM tree, seems to behave normally in Chrome 44 and Firefox 39, with the header and paragraph showing up initially and then responding to the style changes at the appropriate times. However, in Safari 8.0.7 the page is blank until all the alerts have been cleared, at which point the header and paragraph appear with all the style changes already applied. Is this a normal quirk of Safari or is there something else going on? FWIW I copied-and-pasted this particular exercise so there shouldn't be anything wrong with the code.


- Jake

Last edited by TheWildJacko; July 29th, 2015 at 12:03 PM..
Old August 6th, 2015, 04:32 PM
jmcpeak's Avatar
Wrox Author
Join Date: Nov 2005
Posts: 87
Thanks: 0
Thanked 18 Times in 17 Posts

Hi, Jake. My apologies for such a late response.

Different browsers behave differently. I can test that example later when I have my Mac at my disposal, but I imagine it's a quirk of Safari. FWIW, Internet Explorer used to exhibit the same behavior--except it would show the heading and paragraph but only apply the style after the final alert.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch 4 Todo List 2 - odd behavior EricTapia BOOK: Professional Android 2 Application Development 1 March 21st, 2010 03:22 AM
Ch 15 problem with creating cookies in safari browser clintgw BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 0 June 4th, 2009 11:16 PM
javascript in safari arafat.eajaz Javascript 0 September 5th, 2008 02:06 AM
tell about safari -n- konqueror anshul HTML Code Clinic 2 August 26th, 2004 09:32 PM
Safari Browser Larson HTML Code Clinic 0 February 11th, 2004 10:55 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.