Giter Site home page Giter Site logo

Comments (9)

zerocrates avatar zerocrates commented on August 28, 2024 1

Actually now that I look at it, supporting HTML comments is actually required by the standard. That's kind of sad.

Of course, IE doesn't actually support that version of the standard, so. Learn something every day.

image

from plugin-contribution.

zerocrates avatar zerocrates commented on August 28, 2024

form in this case is a jQuery object, so it's jQuery's append that's being called, not the DOM function you linked to.

Do you get an error implicating that line in the IE console? What version of IE is this (I'm assuming 11)?

from plugin-contribution.

zerocrates avatar zerocrates commented on August 28, 2024

I tried this out, just very quickly, and had no problem on IE 11.

from plugin-contribution.

wcaleb avatar wcaleb commented on August 28, 2024

from plugin-contribution.

zerocrates avatar zerocrates commented on August 28, 2024

Is the site showing the problem available at some URL?

from plugin-contribution.

wcaleb avatar wcaleb commented on August 28, 2024

https://harveymemories.org/contribution

from plugin-contribution.

zerocrates avatar zerocrates commented on August 28, 2024

Yeah, I can confirm the issue on your site. This "syntax error" or other unspecified error nonsense is one of the worst parts of trying to deal with IE.

I think what's happening is that it's actually complaining about what jQuery's doing when the append is called. The relevant bit of what it will do is execute any script blocks that came back from the AJAX request for the type form. You've got some custom stuff going on in there, namely scripts for running a datepicker widget and for adding some explanatory text to the map, it looks like.

If you look at the Network tab, you'll see IE downloads the datepicker JS file, but not the map explanation one, which comes later. This leads me to think that it's the datepicker JS that's actually the culprit.

Looking at that datepicker script
, my attention is drawn to the comments at the bottom: those are HTML comments. This is a common enough mistake that the other browsers apparently support them and don't even complain about them, but my guess would be that IE doesn't. I think removing those comments will likely fix the issue.

I'm actually a little surprised that the other browsers don't complain about this at all, but they don't (you can try putting an HTML comment in the Chrome console, it just happily returns undefined and raises no error).

from plugin-contribution.

zerocrates avatar zerocrates commented on August 28, 2024

whoops, that previous comment was supposed to actually link the script in question, it's this:

https://harveymemories.org/plugins/Contribution/views/public/javascripts/datepicker.js

from plugin-contribution.

wcaleb avatar wcaleb commented on August 28, 2024

I removed the comments from datepicker, and it now works! Can't believe that did it, but it did. Thank you very much for your help!

from plugin-contribution.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.