www.webdeveloper.com
Results 1 to 2 of 2

Thread: [RESOLVED] SVG click events and other JavaScript only works in Firefox

  1. #1
    Join Date
    Sep 2004
    Location
    At the corner of WALK and DONT WALK
    Posts
    1,714

    resolved [RESOLVED] SVG click events and other JavaScript only works in Firefox

    Which is bad. The page is http://www.mrinitialman.com/Books/HTML/hsl.xhtml

    In Internet Explorer, the RGB table cell ends up reading HSL notation, which screws up the Hex cell.

    In Opera, Chrome, and Safari, the SVG click events do not work at ALL.

    What have I done wrong?

  2. #2
    Join Date
    Sep 2004
    Location
    At the corner of WALK and DONT WALK
    Posts
    1,714
    Fixed Opera/Chrome/Safari problem, Internet Explorer problem still an issue, so creating new post

    For anyone who reads this thread: when getting an element by its tag name, FireFox and Internet Explorer use the element name prefix (in this case, 'svg:'). Opera, Chrome, and Safari do not, so you have to set up a way to tell the script to choose whether or not to use a prefix with the tag name.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles