Skip to content

Conversation

@sknebel
Copy link
Member

@sknebel sknebel commented Nov 18, 2018

@sknebel sknebel requested a review from gRegorLove November 19, 2018 11:30
Copy link
Member

@Zegnat Zegnat left a comment

Choose a reason for hiding this comment

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

This looks like a straight forward enough change! Just the one little nitpick.

Also wondering if we should some edge-case tests? The following come to mind:

  1. id="0" – to make sure the falsy test is correct; and
  2. id="" – though we need to decide whether this gets added to the parsed object or not. I think not.

@sknebel
Copy link
Member Author

sknebel commented Nov 19, 2018

Can add the test cases. Agreed id="" shouldn't be in the result - id "must contain at least one character". Will update the spec text proposal to reflect this.

Copy link
Member

@Zegnat Zegnat left a comment

Choose a reason for hiding this comment

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

LGTM! Just waiting for Travis to also turn up green on the tests.

@gRegorLove
Copy link
Member

I'd suggest trim($e->getAttribute('id')) !== '' to cover any authoring whitespace mistakes like id=" ". Otherwise LGTM!

@sknebel sknebel force-pushed the implement-id-proposal branch from e23f0a3 to 10ea6b6 Compare November 20, 2018 20:27
Copy link
Member

@gRegorLove gRegorLove left a comment

Choose a reason for hiding this comment

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

👍

@Zegnat Zegnat merged commit 14e8c5e into microformats:master Dec 25, 2018
@Zegnat
Copy link
Member

Zegnat commented Dec 25, 2018

I went ahead and merged this. As I had already completely forgotten about it… Letting reviewed patches sit and get stale seems wrong.

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.

3 participants