Skip to content

If we are jQuery, let's be jQuery... #1

@gregglind

Description

@gregglind

in that we have:

  • search / selectors
  • chainable methods (parent, children)
  • modification (text, content, etc)

For not, this is YAGNI, but a possible way forward is:

  • instead of the things themselves, store the paths to the things, in the object. The means parent() operates like this:

    def _parent(selector,path):
    # straw implementation
    return path[:-1]

This requires some thinking about how what is analogous to various jQuery methods.

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