Skip to content

Implement HTMLHyperlinkElementUtils for HTMLAnchorElement #7857

Closed

Description

@jdm

We need to uncomment the implements line in HTMLAnchorElement.webidl, and then add the missing methods to the HTMLAnchorMethods implementation in htmlanchorelement.rs. Use WorkerLocation as a model for this; each time a method from URLUtils is called (via UrlHelper), we should fetch the current value of the href attribute, then adjust the relevant property if necessary, then set the href attribute to the new value if necessary.

Code: components/script/dom/webidls/HTMLAnchorElement.webidl, components/script/dom/htmlanchorelement.rs
Test: ./mach test-wpt tests/wpt/web-platform-tests/websockets/constructor/006.html

Activity

  1. added
    A-content/dom
    E-more-complex
    on Oct 4, 2015
  2. nox commented on Oct 5, 2015

    @nox
    Contributor

    Note that the URL spec is currently under heavy change.

  3. jdramani commented on Oct 9, 2015

    @jdramani
    Contributor

    I would like to give it a try :)

  4. nox commented on Oct 9, 2015

    @nox
    Contributor

    Great!

  5. added
    C-assigned
    on Oct 9, 2015
  6. nox commented on Oct 14, 2015

    @nox
    Contributor
  7. frewsxcv commented on Nov 26, 2015

    @frewsxcv
    Contributor

    The spec changed for URLUtils: whatwg/html#219

  8. changed the title [-]Implement URLUtils for HTMLAnchorElement[/-] [+]Implement HTMLHyperlinkElementUtils for HTMLAnchorElement[/+] on Nov 28, 2015
  9. jdm commented on Feb 26, 2016

    @jdm
    MemberAuthor

    Latest attempt was in #9292 which was a work-in-progress. Further efforts should be based on that.

  10. removed
    C-assigned
    on Feb 26, 2016
  11. schuster commented on Feb 28, 2016

    @schuster
    Contributor

    I can try to wrap this up if no one else is working on it.

  12. frewsxcv commented on Feb 28, 2016

    @frewsxcv
    Contributor

    Go for it @schuster !

  13. added
    C-assigned
    on Feb 28, 2016
  14. schuster commented on Mar 5, 2016

    @schuster
    Contributor

    I saw in [1] that the URL API might change. Does it make sense to hold off on submitting any changes until that's done, or should I submit something and then it can get updated with everything else later?

    [1] servo/rust-url#176

  15. SimonSapin commented on Mar 5, 2016

    @SimonSapin
    Member
  16. added a commit that references this issue on Mar 10, 2016
    5af1886
  17. added 3 commits that reference this issue on Mar 23, 2016
    052675e
    f766a81
    9a8d622
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-more-complex

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions