Comments (9)
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.
from plugin-contribution.
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.
I tried this out, just very quickly, and had no problem on IE 11.
from plugin-contribution.
from plugin-contribution.
Is the site showing the problem available at some URL?
from plugin-contribution.
https://harveymemories.org/contribution
from plugin-contribution.
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.
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.
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)
- Confusion over "Simple" Submission setting
- The link "MyContribution" raises an error as long as the contributions have not been validated
- Contribution doesn't work with SimpleVocab plugin
- Can't contribute anonymously to private collections HOT 4
- Config tinyMCE HOT 1
- Multiple contribution types HOT 1
- rename settings and input names to reflect new workflows
- Finish superanonymous branch
- Testing completely anonymous contributions HOT 8
- No more Simple option with Superanon options
- Consider letting admins use it HOT 1
- Needs to be updated for new tinymce HOT 1
- Testing a few PRs HOT 2
- Error contributing movies
- "Keep identity private" use case when strict-anonymous enabled?
- AdminTheme: Edit Elements in contribution types HOT 2
- No Tiny MCE Editor in the TOS input under Submission Settings Tab HOT 3
- Review strings edited to avoid ending links HOT 1
- Multiple Rows checkbox not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugin-contribution.