-
Notifications
You must be signed in to change notification settings - Fork 129
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
Parser Ability To Handle Embedded Tables #57
Comments
Minimal case: <table><tbody><tr><td><table><tbody></tbody></table></td></tr></tbody></table> I will look into this when I have time. |
Lol it sure is. Thanks and let me know if you need any help reproducing this. |
thanks @andrejewski I got the latest 0.2.11 but this doesn't appear to be fixed as of yet....do you want me to send sample code and a test file? I think the minimal test scenario is missing embedding tr & td for example OLD NEW The tr and td tags are been pushed to the top level table. |
Ah, I see. I made the parser demo to help with issues so usually a HTML snippet is fine and I can load it up in the demo and see the problem. This will take a very similar fix and test cases, hopefully I can get this fixed when I find some time. |
Hey @andrejewski thanks for the fix looks good. All the best. |
Hi There,
I have a minimum set of instructions to reproduce an issue I believe is with the parser. The set of steps to reproduce are the following:
HtmlTemplate = fs.readFileSync(TemplateHtmlPath, {encoding: 'utf8'});
JsonTemplate = himalaya.parse(HtmlTemplate );
let Html = toHTML(JsonTemplate );
fs.writeFileSync(FinalHtmlPath, Html);
The Html returned from toHTML(JsonTemplate) is very different to the HTML that was originally loaded into the program. I don't think the module currently handles embedded tables. Thoughts? I attach sample files (Test.html, script.js & style.css). As you can see from the sample html it contains embedded tables.
Test.zip
The text was updated successfully, but these errors were encountered: