Skip to content

spec: Check whether url is present before processing it. #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 21, 2017

Conversation

mgiuca
Copy link
Collaborator

@mgiuca mgiuca commented Jun 20, 2017

Fixes a spec bug where a non-existent URL would be parsed.

Closes #39.


Preview | Diff

Fixes a spec bug where a non-existent URL would be parsed.

Closes w3c#39.
<li>If <var>data</var>'s <a for="ShareData">url</a> member is
<a data-cite="!WEBIDL#dfn-present">present</a>:
<ol>
<li>Let <var>url</var> be the result of running the
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Everything below this is unchanged (just indented).

@mgiuca
Copy link
Collaborator Author

mgiuca commented Jun 20, 2017

@domenic This should fix #39. As I explained on that bug, I don't want to make it default to the empty string. This simple change matches the behaviour in Chrome which is to just have no url attribute by default.

@mgiuca
Copy link
Collaborator Author

mgiuca commented Jun 21, 2017

(@domenic has lgtm'd this on #39)

@mgiuca mgiuca merged commit a10dc52 into w3c:master Jun 21, 2017
@mgiuca mgiuca deleted the spec-check-missing-url branch July 3, 2017 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant