Skip to content

Events extraction: crawler confused by info panels in "fire an event" phrasings #1268

Closed
@tidoust

Description

Bikeshed now creates aside panels next to event names. These aside panels are inserted without whitespaces.

The code that extracts such event definitions in Reffy uses a Range that then gets converted to a string and parsed with a regular expression. This makes Reffy append an Info text to the event.

Note the node cannot simply be cloned to remove asides because createRange requires nodes to be attached to the document. We can probably just temporarily attach the cloned node to the document to work around that limitation.

The Compat spec triggers the issue, and currently blocks data curation in Webref, see w3c/webref@962084e#diff-c979d3426024c90a4acc3188c8f639e75116b459847995d1bbd26c80219be3f3

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions