FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Selector results should be ordered. · Issue #25 · msva/lua-htmlparser · GitHub

Selector results should be ordered. #25

Description

The select method returns an unordered Set and there is no way to reorder the returned nodes according to the order they appeared in the original document. This makes it harder to write programs that expect a particular order, like something that prints the <li> nodes in a <ol> or a program that reads data from the columns in a table row.

Maybe this isn't feasible for backwards compatibility reasons but, given the similarities to JQuery or BeautifulSoup I would expect select to return a list or ordered set. After that, if I wanted the old behaviour with sets it would just be a matter of creating the set explicitly with Set(element_list).

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL