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

HTML API: add get/set inner/outer markup #4956

Draft
wants to merge 5 commits into
base: trunk
Choose a base branch
from

Conversation

dmsnell
Copy link
Member

@dmsnell dmsnell commented Aug 2, 2023

Status

Do not merge: This incorporates two other PRs, which may change before they are merged.

Todo

  • Add tests that change inner markup (vs. simply remove it)
  • Add tests that change outer markup (vs. simply remove it)
  • Add tests that perform multiple inner markup changes after each other.
  • Add tests that perform multiple outer markup changes after each other.
  • Add tests that perform inner markup changes after outer markup changes.
  • Add tests that perform outer markup changes after inner markup changes.
  • Add tests for when a node is implicitly closed after another is also implicitly closed.
  • Add examples to new function docblocks.
  • Review documentation to make sure it's explanatory enough.
  • Review names and try to find better ones for substr_bookmarks and replace_with_bookmarks

Questions

  • Should we add raw to the names to indicate even more that these are making potentially-destructive operations? This doesn't escape HTML because it can't, if it's already provided an HTML string. This also doesn't validate semantic rules, for example, adding a paragraph inside a paragraph. e.g. set_raw_inner_markup()

Description

Trac ticket:


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@dmsnell dmsnell changed the title Html api/add get set inner outer contents Html api/add get inner / outer contents Aug 2, 2023
@dmsnell dmsnell force-pushed the html-api/add-get-set-inner-outer-contents branch 2 times, most recently from e2a7146 to 851b3c7 Compare August 3, 2023 00:42
@dmsnell dmsnell changed the title Html api/add get inner / outer contents HTML API: add get inner / outer contents Aug 3, 2023
@dmsnell dmsnell force-pushed the html-api/add-get-set-inner-outer-contents branch 5 times, most recently from 060d219 to de410cd Compare August 3, 2023 22:06
@dmsnell dmsnell changed the title HTML API: add get inner / outer contents HTML API: add get/set inner/outer markup Aug 4, 2023
@dmsnell dmsnell force-pushed the html-api/add-get-set-inner-outer-contents branch 2 times, most recently from 242e8ba to 18cc399 Compare August 9, 2023 18:23
@dmsnell
Copy link
Member Author

dmsnell commented Aug 9, 2023

Rebased from 242e8ba to 18cc399

@dmsnell dmsnell force-pushed the html-api/add-get-set-inner-outer-contents branch 3 times, most recently from 6698cd9 to 43db05f Compare August 14, 2023 14:51
@dmsnell dmsnell force-pushed the html-api/add-get-set-inner-outer-contents branch from 43db05f to 79bf013 Compare November 16, 2023 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant