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

Editorial: improve fragment parsing #10874

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

annevk
Copy link
Member

@annevk annevk commented Dec 19, 2024

This makes the argument order consistent and corrects a false statement about what the XML fragment parser returns. It also generally improves alignment with Infra and other best practices, though it does not improve the actual integration with the parsers.


Noticed this while working on scoped custom element registries.


/dynamic-markup-insertion.html ( diff )
/parsing.html ( diff )
/xhtml.html ( diff )

This makes the argument order consistent and corrects a false statement about what the XML fragment parser returns. It also generally improves alignment with Infra and other best practices, though it does not improve the actual integration with the parsers.
Comment on lines +134277 to +134279
<p>The <dfn>HTML fragment parsing algorithm</dfn> given an <code>Element</code> node <dfn
data-x="concept-frag-parse-context"><var>context</var></dfn>, string <var>input</var>, and an
optional boolean <var>allowDeclarativeShadowRoots</var> (default false) are the following steps.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<p>The <dfn>HTML fragment parsing algorithm</dfn> given an <code>Element</code> node <dfn
data-x="concept-frag-parse-context"><var>context</var></dfn>, string <var>input</var>, and an
optional boolean <var>allowDeclarativeShadowRoots</var> (default false) are the following steps.
<p>The <dfn>HTML fragment parsing algorithm</dfn>, given an <code>Element</code> node <dfn
data-x="concept-frag-parse-context"><var>context</var></dfn>, string <var>input</var>, and an
optional boolean <var>allowDeclarativeShadowRoots</var> (default false) is the following steps.

Comment on lines +134365 to +134367
<p>Let this start tag token be the start tag token of <var
data-x="concept-frag-parse-context">context</var>, e.g. for the purposes of determining if it is
an <span>HTML integration point</span>.</p>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<p>Let this start tag token be the start tag token of <var
data-x="concept-frag-parse-context">context</var>, e.g. for the purposes of determining if it is
an <span>HTML integration point</span>.</p>
<p>Let this start tag token be the start tag token of <var
data-x="concept-frag-parse-context">context</var>; e.g. for the purposes of determining if it is
an <span>HTML integration point</span>.</p>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants