-
Notifications
You must be signed in to change notification settings - Fork 113
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
Exception when saving after renaming empty html to HTA #275
Comments
Hey @wshallum , could you clarify the use-case, why renaming to |
Hi @YakovL - I renamed it to I tested using I still think the general point about documenting what version of IE it expects to run on is valid. |
Ah, so did I get you correctly?:
Once we're clear about the versions, I'll be able to look for some alternatives as changing extension doesn't sound like a friendly user experience anyway. If we put this into the core, we have to describe such usage in docs as well, so need to investigate the context. |
The reason for changing extensions is that HTA is considered an "application" (as opposed to "web page") and still has access to the FileSystemObject for manipulating local files. |
Oh wow, so it actually works not "inside IE", but as a standalone "app" (IE without tabs?). That's quite an interesting approach (in terms of UX)! I do agree that this should be documented (along with side effects, like UTF-16 encoding), and probably the meta tag should be added. I'll investigate this further later. Thanks for sharing! Probably worth sharing in the google group as well. |
Thank you! If you're interested: the UTF-16 encoding can be worked around in an HTA by using
it works to save in UTF-8 however there's a UTF-8 BOM (
|
I'm having trouble saving when the empty file is renamed to
.hta
. The cause is HTA defaults to IE6 compatibility if not forced by theX-UA-Compatible
meta tag and the use of.classList.add(
in Messages.js here:https://github.com/TiddlyWiki/TiddlyWiki/blob/536439d854dca721275ff1140e9b2d19711b168a/js/Messages.js#L23
is causing it to throw an exception (https://caniuse.com/classlist says that classList is only usable starting IE10).
It would help to either add the
X-UA-Compatible
meta tag or alternatively a) document what version of IE is supported and b) just display a message if it is too old.(yes, I know it's barely documented that saving as HTA would work, it's only mentioned in this one tiddler):
https://github.com/TiddlyWiki/TiddlyWiki/blob/master/content/ServicePack2Problems.tid
I managed to work around this in my copy by manually adding the
X-UA-Compatible
meta tag.The text was updated successfully, but these errors were encountered: