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

  • Home
  • SEARCH
  • 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 7665423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:33:45+00:00 2026-05-31T14:33:45+00:00

Run into a rather interesting problem. An element generated as html and inserted into

  • 0

Run into a rather interesting problem.

An element generated as html and inserted into the page via jquery does not pick up the assigned styles.

The style is in the HTML, but the browser (Chrome, Firefox) does not render it at all.

The generated html can be saved via the browser, and the HTML file when opened DOES have the style applied.

The same code generated via javascript directly (bypassing crate) or by using an explicit html string from within clojurescript also has the correct style.

It appears to be an issue with crate-generated elements only.

eg:

(-> (jquery "body")         
  (.append (crate/html [:h1{:class "red"} "Test inside a jquery"]) ))))

Where the red class simply defines:

.red {
color:red;
}

I have tried several variations of crate here including defpartial, defhtml with the same results.
Same results using jayq or non-wrapped jquery.
Similarly, using different jquery methods (inner, append, html, etc).

Am I missing something very obvious?

  • 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-05-31T14:33:46+00:00Added an answer on May 31, 2026 at 2:33 pm

    Turns out that the underlying problem was that I had a function in my app called “get”

    (defn get [])
    

    Which may have been conflicting with clojure.core/get.

    Removing or renaming this function resolves the issue and CSS is applied correctly.
    Very strange.

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

Sidebar

Related Questions

I've run into an rather irritating problem in java. I have a program that
I run into an interesting problem while was using combos in input form. My
Whilst developing a php class i have run into a rather interesting thing within
I have run into a rather weird little problem. In the following code I
I have run into a rather weird problem. I have created the following query
I have run into a common, yet difficult problem. I do not use Photoshop
I've run into a rather interesting enunciate error: No more than one JAX-RS entity
I've run into a rather strange problem. I have a div that is rotatable
I've run into a mysterious problem. I'm using jQuery's animate function and the object
I've run into a rather annoying problem which I cannot seem to get to

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.