Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > BOOK: Beginning JavaScript 5th Edition
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 29th, 2015, 12:49 PM
Registered User
Points: 13, Level: 1
Points: 13, Level: 1 Points: 13, Level: 1 Points: 13, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.

Thanks!

- Jake

Last edited by TheWildJacko; July 29th, 2015 at 01:03 PM.
Reply With Quote
  #2 (permalink)  
Old August 6th, 2015, 05:32 PM
jmcpeak's Avatar
Wrox Author
Points: 467, Level: 7
Points: 467, Level: 7 Points: 467, Level: 7 Points: 467, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2005
Location: , Texas, USA.
Posts: 87
Thanks: 0
Thanked 17 Times in 16 Posts
Default

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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 04:22 AM
Ch 15 problem with creating cookies in safari browser clintgw BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 0 June 5th, 2009 12:16 AM
javascript in safari arafat.eajaz Javascript 0 September 5th, 2008 03:06 AM
tell about safari -n- konqueror anshul HTML Code Clinic 2 August 26th, 2004 10:32 PM
Safari Browser Larson HTML Code Clinic 0 February 11th, 2004 10:55 PM



All times are GMT -4. The time now is 10:34 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.