Skip to content

Inline URLUtils for a and area elements - #219

Merged
annevk merged 1 commit into
masterfrom
hyperlink
Oct 6, 2015
Merged

annevk merged 1 commit into
masterfrom
hyperlink

Conversation

@annevk

@annevk annevk commented Oct 1, 2015

Copy link
Copy Markdown
Member

See whatwg/url#62 for the background. This
defines a mixin used by both a and area elements to define their IDL
members previously defined by the URL standard.

It also fixes a small error in the WorkerLocation text.

@annevk

annevk commented Oct 1, 2015

Copy link
Copy Markdown
Member Author

Note to self: make this consistent about "the element" vs "element" (former is better).

Comment thread source Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name should not contain HyperLink; it should be Hyperlink. The document uses hyperlink as all one word, not two words.

Maybe name it with a "mixin" suffix, or "utils"? Everything following the HTML___Element pattern is an actual class, not a mixin. So e.g. HTMLHyperlinkUtils or HTMLHyperlinkElementUtils would help clarify IMO.

@domenic

domenic commented Oct 1, 2015

Copy link
Copy Markdown
Member

Note to self: make this consistent about "the element" vs "element" (former is better).

I would actually prefer "this element" :)

Comment thread source

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: there is some inconsistency in how you call other specs algorithms. Here it is "given url and the given value", i.e. as positional arguments. Later it is "with url as url and host state as state override," i.e. named arguments. Might be better to stick to named arguments everywhere.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I use named arguments when it gets ambiguous. Would love to get rid of that though. Hopefully at some point we have a good meta-language for writing algorithms that has all this stuff covered.

@annevk

annevk commented Oct 2, 2015

Copy link
Copy Markdown
Member Author

All comments should have been addressed. I left them as separate commits for now.

Comment thread source Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

relative to element -> relative to this element

@domenic

domenic commented Oct 5, 2015

Copy link
Copy Markdown
Member

LGTM after fixing the ? vs. # confusion.

@domenic domenic assigned annevk and unassigned domenic Oct 5, 2015
See whatwg/url#62 for the background. This
defines a mixin used by both a and area elements to define their IDL
members previously defined by the URL standard.

It also fixes a small error in the WorkerLocation text.
@annevk
annevk merged commit bab6591 into master Oct 6, 2015
@annevk
annevk deleted the hyperlink branch October 6, 2015 05:02
nathaneliason pushed a commit to nathaneliason/html that referenced this pull request Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants