-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Fields beginning with numbers get deleted #304
Comments
I missed this somehow - apologies for the late response. I'll take a look at this and see if I can reproduce it. |
I can't reproduce this in the latest TiddlyWiki, so perhaps it's a TiddlyWiki bug rather than a Tiddlyhost bug. I'm trying it out at https://simon.tiddlyhost.com/#Fields%20with%20numbers%20test with TiddlyWiki 5.2.5. |
I was able to reproduce this problem in an older TiddlyWiki version, (a 5.1.24-prerelease). Actually I suspect it is related to how Tiddlyhost parses the div based storage used in pre-5.2.0 TiddlyWikis. If that's true it may be possible to provide a fix on Tiddlyhost. I'll take a look at this later. My guess is that switch to json based storage in TiddlyWiki 5.2.0, caused this problem to go away. Are you able to upgrade your TiddlyWiki file as a workaround? |
Hey, thanks for responding, I kind of forgot about this as well. I can look into updating my wiki. If it's not an issue with newer wikis then it's not a totally pressing issue for me. I'll close this as completed and let you decide whether it's an issue you'd like to address further. |
Hi, I have done some work trying to upgrade my wiki without success. I am wondering if you would please attempt to fix this bug? |
Do you want some help to upgrade your TiddlyWiki? |
https://github.com/simonbaird/tiddlyhost/wiki/Upgrading-your-site-to-the-latest-version-of-TiddlyWiki is step by step guide on how to upgrade. |
Thank you. The wiki is fairly customized with most of the work on it being done some time ago, so I have not been able to upgrade it cleanly. Are you willing to try to fix the bug? I don't want to take too much of your time, but I figure there might be a chance it's just a simple fix. |
Understood. Okay, let me see if I can find a solution. |
Experiments with the parser used by Tiddlyhost:
Notice the attribute "1a" is skipped in the second example. Experimenting with a real TiddyWiki saved in Tiddlyhost:
From that I can tell that the save does preserve the attribute, but when Tiddlyhost reads/parses the site (using Nokogiri) it disappears. |
Switching from Nokogiri to Oga might be an option since it seems to be more lenient about attribute names.
|
I'm having an issue where any fields starting with numbers are deleted upon saving or uploading to Tiddlyhost, using an uploaded Tiddlywiki version 5.1.17.
Expected behavior: Fields starting with numbers work like any other.
Observed behavior: Any field starting with a number will be deleted or not saved upon saving. Everything else is present upon reloading except any fields beginning with a number. A freshly uploaded Tiddlywiki file (v5.1.17) that contains fields starting with a number will not have those fields present upon viewing the uploaded wiki, with everything else intact.
The text was updated successfully, but these errors were encountered: