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

Events: Skip asides in "fire an event" phrasing #1269

Merged
merged 2 commits into from
Apr 24, 2023
Merged

Events: Skip asides in "fire an event" phrasing #1269

merged 2 commits into from
Apr 24, 2023

Conversation

tidoust
Copy link
Member

@tidoust tidoust commented Apr 22, 2023

This completes the "fire an event" extraction logic to ignore annotations that Bikeshed may now add (without whitespaces) next to event names.

Note the update also adds a couple of safeguards to while loops that were not properly constrained, although this has likely not have had any impact on extracted info so far.

Fixes #1268

This completes the "fire an event" extraction logic to ignore annotations
that Bikeshed may now add (without whitespaces) next to event names.

Note the update also adds a couple of safeguards to while loops that were
not properly constrained, although this has likely not have had any impact
on extracted info so far.

Fixes #1268
@tidoust tidoust requested a review from dontcallmedom April 22, 2023 10:18
// (note the need to temporarily add the cloned node to the document
// so that ranges can be used)
let apos = 0;
for (let i = 0; i < a.parentNode.children.length; i++) {
Copy link
Member

Choose a reason for hiding this comment

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

this could be

const apos = [...a.parentNode.children].findIndex(a);

Copy link
Member Author

Choose a reason for hiding this comment

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

Indeed, will make the change. FWIW, rather const apos = [...a.parentNode.children].findIndex(c => c === a);

@tidoust tidoust merged commit dd6d82a into main Apr 24, 2023
@tidoust tidoust deleted the events-aside branch April 24, 2023 06:42
tidoust added a commit that referenced this pull request Apr 24, 2023
Breaking changes:
- Bump minimal supported version of Node.js from v14 to v18 (#1271)

Required by dependency on ReSpec, although note this dependency is only for tests (`devDependencies` in `package.json`). The crawler itself should continue to run under previous versions of Node for now but this may not last!

Dependencies bumped:
- Bump respec from 32.8.0 to 34.0.1 (#1270). This triggers the need to bump the minimal supported version of Node.js.
- Bump puppeteer from 19.9.1 to 19.10.1 (#1267)
- Bump rollup from 3.20.4 to 3.20.7 (#1266)
- Bump semver from 7.4.0 to 7.5.0 (#1264)

Feature patched:
- Events: Skip asides in "fire an event" phrasing (#1269)
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.

Events extraction: crawler confused by info panels in "fire an event" phrasings
2 participants