Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: not well-formed (// ==UserScript==) #1134

Closed
arantius opened this issue May 27, 2010 · 4 comments
Closed

Error: not well-formed (// ==UserScript==) #1134

arantius opened this issue May 27, 2010 · 4 comments
Milestone

Comments

@arantius
Copy link
Collaborator

Using XMLHttpRequest to download user scripts makes the deep internals of its implementation try to parse it as XML, and throw an error that the contents are not well-formed XML, logged in the error console.

Use a different method to download anything that isn't guaranteed to be an XML file.

@satyr
Copy link

satyr commented May 29, 2010

Try:

xhr.overrideMimeType("text/plain")

@arantius
Copy link
Collaborator Author

arantius commented Jun 2, 2010

Sigh, I can't reproduce this now.

@erikvold
Copy link
Contributor

erikvold commented Jun 2, 2010

I get this whenever I drag and drop a userscript into a browser window.

@arantius
Copy link
Collaborator Author

arantius commented Jun 3, 2010

So simple, thanks!

commit d07e02b

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants