Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9120551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:39:10+00:00 2026-06-17T05:39:10+00:00

Update: Question edited to add more information. My app directly views XML data in

  • 0

Update: Question edited to add more information.

My app directly views XML data in a browser — after some light client-side XSLT processing that we can assume here is just the identity transform inside a thin HTML wrapper.

<xsl:output method="xml" indent="no" encoding="utf-8" />

<xsl:template match ="/">
  <html xmlns="http://www.w3.org/1999/xhtml" >
    <head>

    </head>
    <body>

      <xsl:template match="@*|node()">
        <xsl:copy>
           <xsl:apply-templates select="@*|node()"/>
        </xsl:copy>
      </xsl:template>

    </body>
  </html>
</xsl:template>

With jQuery 1.8.3, this

$("*[target]").click(function (event) {
    alert("click");
});

will (or should) select elements that have a @target attribute.

This works fine in IE and Chrome, but in Firefox jQuery won’t select anything unless I change the XSLT output to “html”, which messes up other things.

What is the correct way, in Firefox, to get jQuery to select non-HTML, XML elements or — which might be saying the same thing a different way — to get jQuery to select custom HTML elements?

Update: Found source of problem. The selectors do not select because they are inside $(document).ready() and that does not fire for XML documents styled with XSLT (output=’xml’) in Firefox. Someone else with same problem: http://forum.jquery.com/topic/document-ready-with-xslt-in-xhtml

I haven’t found a combination of parameters and code order to get it to fire. My workaround so far is to use $(window).load() instead of $(document).ready().

More Update There is now a jQuery bug report for this, #13193. http://bugs.jquery.com/ticket/13193

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:39:11+00:00Added an answer on June 17, 2026 at 5:39 am

    Wrap jQuery code in

    $(window).load(function(){
        // jQuery bindings here
    });
    

    instead of

    $(document).ready(function(){
        // jQuery bindings here
    });
    

    This will delay availability of the jQuery bindings, but they will get made

    jQuery team has accepted this as a bug. http://bugs.jquery.com/ticket/13193

    Switch back to $(document).ready once the bug is fixed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

UPDATE : Since this question is getting some views, I figured I'd better highlight
** This question has been edited to make it simpler and more focused **
I edited the question after David Hanak's answer (thanks btw!). He helped with the
Update: question now contains the final edited answer! I now use the following (final
[edited to show current state of play a week after asking the question] I
Edited to make the question more clear. I am trying to work with Isolates
********Update to Question********** If the tableview does not affect the model: Are the index
UPDATE: This question is out of date, but left for informational purposes. Original Question
Update: This question was an epic failure, but here's the working solution. It's based
Update: This question is a duplicate of Are there any programming languages targeting PHP,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.