Skip to content

Refactor code to use new common utilities for HTML#550

Merged
jwakely merged 10 commits intocplusplus:masterfrom
jwakely:html-utils
Feb 24, 2026
Merged

Refactor code to use new common utilities for HTML#550
jwakely merged 10 commits intocplusplus:masterfrom
jwakely:html-utils

Conversation

@jwakely
Copy link
Member

@jwakely jwakely commented Feb 22, 2026

No description provided.

@jwakely jwakely marked this pull request as draft February 22, 2026 08:50
@jwakely jwakely force-pushed the html-utils branch 2 times, most recently from 1604bf5 to f55672d Compare February 22, 2026 09:38
@Dani-Hub
Copy link
Member

Looks good to me. I successfully checked it out, rebuild everything and could also build a list locally

@jwakely jwakely changed the title WIP: Refactor code to new common utilities for HTML WIP: Refactor code to use new common utilities for HTML Feb 22, 2026
@jwakely jwakely force-pushed the html-utils branch 2 times, most recently from 2c2f467 to 022fd36 Compare February 23, 2026 17:36
@jwakely jwakely marked this pull request as ready for review February 23, 2026 17:36
Replace some manual string manipulation in mailing_info.cpp.
The struct members are the "outer XML" and "inner XML" which are
terms commonly used in DOM APIs (alternative names I considered are
"element" and "content", to match the XML specs).

Also rename get_element_contents to get_element_content, which matches
the term used in XML specs for the data between the STag and ETag.
Return std::nullopt instead of throwing in the utility functions.

Make callers check and throw (as was the case before changing them to
use the new utility functions).
Require the attribute name to be provided by the caller, instead of just
processing the first attribute found. This allows the lambda to be
defined in terms of the lwg::get_attribute_of utility.
Use the new utility functions to simplify parsing <section> and
<priority> elements.
Make static pattern rule for self tests more flexible.

Use LINK.C implicit rule for linking C++ programs.
@jwakely jwakely changed the title WIP: Refactor code to use new common utilities for HTML Refactor code to use new common utilities for HTML Feb 24, 2026
@jwakely jwakely merged commit aebbbfb into cplusplus:master Feb 24, 2026
2 checks passed
@jwakely jwakely deleted the html-utils branch February 24, 2026 20:24
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.

2 participants