-
Notifications
You must be signed in to change notification settings - Fork 4
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
Issue saving nested list #23
Comments
Hello! The W3C specs for the UL HTML element are postulating the next:
Only LI, transparent elements (INS and DEL) and script-supporting elements (SCRIPT and TEMPLATE) are valid children for the UL element (same for OL). From the provided screenshot I see a root UL element, which have 2 children: LI (that is valid) and UL (that is invalid). Tjis is a broken HTML markup, and GroupDocs.Editor cannot allow, pas and process such invalid HTML markup, because in this case the overall document structure and styles will became undefined behavior. You may check this by yourself with the W3C Validator, for example: https://validator.w3.org/nu/#textarea If you want a nested unordered list in another unordered list (this is valid), then you need to wrap the nested UL inside LI, as it is shown at the beginning of this page. Regarding the error message:
It is slightly inaccurate - there should be a
This error message will be fixed in the next release, but, the overall HTML validation and verification mechanism will be untouched. Regarding the " If this scenario is vital for you and you cannot avoid such copy-pasting from Google Docs or somehow fix it, we can suggest the way that is implemented by the most web-browsers - allow such invalid HTML markup, but automatically wrap nested UL inside the LI element. It is a complex algorithm to detect such "broken use-cases" but it can be done if you really need it. But, again, it is much more better to paste a correct HTML markup. |
This issue is raised in https://forum.groupdocs.com/t/editor-for-java-error-saving-word-document/12382/3
Hi,
Please take a look at this GIF https://drive.google.com/file/d/1F6Nww6Qi1sIeLlGieDbHlpWZG_ssJgrD/view
and this image -
There is a problem when we copy some nested list from google docs, paste it in app and save it.
Thanks
The text was updated successfully, but these errors were encountered: