Skip to content

Implement Document.createTouchList #8225

Closed

Description

@jdm

Spec: https://w3c.github.io/touch-events/#widl-Document-createTouchList-TouchList-Touch-touches and https://w3c.github.io/touch-events/#idl-def-Document

We started implementing support for touch events on websites recently, and some websites want to use an API that we don't implement yet. We need to add the declaration to the WebIDL (next to createTouchEvent), and add the corresponding Rust method to the Document implementation that returns a new TouchList object. There's an example of doing this in handle_touch_event.

Code: components/script/dom/webidls/Document.webidl, components/script/dom/document.rs
Test: ./mach test-wpt tests/wpt/web-platform-tests/touch-events/create-touch-touchlist.html

Activity

  1. added
    A-content/dom
    C-assigned
    on Oct 27, 2015
  2. jdm commented on Oct 27, 2015

    @jdm
    MemberAuthor

    This is reserved for a potential new contributor, so please talk to me before starting to work on this.

  3. added
    E-less-complex
    and removed
    C-assigned
    on Nov 17, 2015
  4. jdm commented on Nov 17, 2015

    @jdm
    MemberAuthor

    This is available for anybody :)

  5. k-cross commented on Nov 18, 2015

    @k-cross

    Maybe I'll give it a shot.

  6. added
    C-assigned
    on Nov 18, 2015
  7. jdm commented on Nov 18, 2015

    @jdm
    MemberAuthor

    Great!

  8. k-cross commented on Nov 21, 2015

    @k-cross

    just committed in a PR, i hope it's everything that's needed.

  9. added a commit that references this issue on Nov 21, 2015
  10. added 3 commits that reference this issue on Dec 20, 2015
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

    A-content/domC-assignedE-less-complex

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions