Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement HTMLHyperlinkElementUtils for HTMLAnchorElement #7964
Conversation
|
r? @nox |
|
-S-awaiting-review +S-needs-code-changes You use a get_url() method on HTMLAnchorElement but it's not defined anywhere. Review status: 0 of 2 files reviewed at latest revision, all discussions resolved, some commit checks pending. Comments from the review on Reviewable.io |
|
Should I include url : Url in HTMLAnchorElement structure and use it as UrlHelper::Host(&self.url) ? |
|
This should wait for #8008 to land. |
|
#8008 landed. |
|
|
|
Now because of the following change in HTMLAnchorElement.webidl -//HTMLAnchorElement implements URLUtils; We should implement HTMLHyperlinkElementUtils for HTMLAnchorEement , right? |
|
@jdramani Yes! |
|
@jdramani Ping? |
|
I am sry. I am stuck in my work but i would like to do it in the next week if there is no urgency. |
|
That's fine! |
|
The spec changed for |
|
@jdramani Ping? |
32af32e
to
22312b9
|
components/script/dom/htmlanchorelement.rs, line 29 [r2] (raw file): Comments from the review on Reviewable.io |
|
components/script/dom/htmlanchorelement.rs, line 114 [r2] (raw file): Comments from the review on Reviewable.io |
|
components/script/dom/webidls/HTMLHyperlinkElementUtils.webidl, line 9 [r2] (raw file): Comments from the review on Reviewable.io |
|
should I provide this link https://html.spec.whatwg.org/multipage/semantics.html#api-for-a-and-area-elements ? |
|
Use the same links found here: https://github.com/servo/servo/blob/master/components/script/dom/url.rs#L90-L203 |
|
This currently doesn't compile: https://travis-ci.org/servo/servo/jobs/96659745 |
| @@ -5,16 +5,17 @@ | |||
|
|
|||
| // https://html.spec.whatwg.org/multipage/#htmlhyperlinkelementutils | |||
| //[NoInterfaceObject/*, Exposed=Window*/] | |||
This comment has been minimized.
This comment has been minimized.
frewsxcv
Dec 14, 2015
Member
I think you need to uncomment this line partially so it becomes:
[NoInterfaceObject/*, Exposed=Window*/]
Because right now, it's looking in components/script/dom/htmlhyperlinkelementutils.rs for a concrete DOM structure, which shouldn't exist since this interface is marked as NoInterfaceObject
Blah, I'm sorry, I was wrong in this comment. You're going to want to link to the items found here. For example, for the |
741efcf
to
c3f55bd
| @@ -108,6 +110,101 @@ impl HTMLAnchorElementMethods for HTMLAnchorElement { | |||
|
|
|||
| // https://html.spec.whatwg.org/multipage/#dom-a-shape | |||
| make_setter!(SetShape, "shape"); | |||
|
|
|||
| // https://html.spec.whatwg.org/multipage/semantics.html#dom-hyperlink-hash | |||
This comment has been minimized.
This comment has been minimized.
frewsxcv
Dec 16, 2015
Member
This should be https://html.spec.whatwg.org/multipage/#dom-hyperlink-hash
You should run ./mach test-tidy to see the errors that are occurring
|
@jdramani do you need help finishing this PR? |
|
Let me give it a final try and then i will let you know. Sry for the delay. On Mon, Dec 28, 2015 at 7:08 PM, Keith Yeung notifications@github.com
|
c3f55bd
to
fc2dfe3
|
Thanks for your work! I tried to finish it, but didn't quite get everything done. PR at #9292. |
jdramani commentedOct 11, 2015
Fixes #7857