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

[DOXIA-734] Restore handling of XHTML 1.0 obsolete attributes #204

Merged
merged 1 commit into from Mar 19, 2024

Conversation

kwin
Copy link
Member

@kwin kwin commented Mar 14, 2024

@michael-o This is what I have in mind, at least for the most important obsolete attributes

@kwin kwin force-pushed the bugfix/restore-xhtml1-parser-capabilities-for-xdoc-fml branch from da2dc30 to 6e9d899 Compare March 14, 2024 17:18
@michael-o
Copy link
Member

I see, it will map on the fly from XHML1.0 to XHTML5. Not bad at all and something I can clearly live with.
Question: Does it make sense to log a warning to tell the user that the attribute should be migrated?

@kwin kwin force-pushed the bugfix/restore-xhtml1-parser-capabilities-for-xdoc-fml branch 2 times, most recently from fb55862 to 582065a Compare March 14, 2024 19:28
@kwin kwin force-pushed the bugfix/restore-xhtml1-parser-capabilities-for-xdoc-fml branch from 582065a to c42e640 Compare March 14, 2024 19:58
Copy link
Member

@michael-o michael-o left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice

@kwin kwin force-pushed the bugfix/restore-xhtml1-parser-capabilities-for-xdoc-fml branch from c42e640 to dc29416 Compare March 15, 2024 10:20
@kwin
Copy link
Member Author

kwin commented Mar 15, 2024

Does it make sense to log a warning to tell the user that the attribute should be migrated?

I don't think so, because the document is complying with the spec while using XHTML5 only attributes/elements (while supported) is not specified for XDoc 2.0. We should rather deprecate XDoc usage alltogether (but this is separate from this issue).

@kwin kwin marked this pull request as ready for review March 15, 2024 10:23
@michael-o michael-o self-requested a review March 19, 2024 10:32
Copy link
Member

@michael-o michael-o left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am fine with this change.

@kwin kwin force-pushed the bugfix/restore-xhtml1-parser-capabilities-for-xdoc-fml branch from dc29416 to 3d8d580 Compare March 19, 2024 11:48
@kwin kwin merged commit 13d14b2 into master Mar 19, 2024
34 checks passed
@kwin kwin deleted the bugfix/restore-xhtml1-parser-capabilities-for-xdoc-fml branch March 19, 2024 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants