Skip to content

How does the SingleElementCheck work? #38

Discussion options

You must be logged in to vote

Code Context

Let's take a look at the docstring for AbstractSingleElementCheck

    def contains_single_element(self, element: AbstractSemanticElement) -> bool | None:
        """
        Designed to work as series of subsequent checks.
        - Returning None means that the check is inconclusive, and the next check should be performed.
        - Returning True means that no further checks are necessary, and the HTML element will be
        later be able to be converted into a semantic element without any splits.
        - Returning False means that the HTML element will be split into multiple semantic elements
        of type NotYetClassifiedElement.
        """

And the checks available:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@INF800
Comment options

Answer selected by alphanome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants