Skip to content

Conversation

nainar
Copy link
Contributor

@nainar nainar commented Jul 25, 2017

Fix for issue #145 - @shans could you PTAL?

</div>

<div algorithm>
This section describes the <dfn>algorithm to check if any given |value| is of a certain type</dfn>:
Copy link
Contributor

Choose a reason for hiding this comment

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

...is of a type that applies to a given |property|, otherwise referencing property below makes no sense.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

7. Append |values to append| to the end of |entry|’s list.
</div>

<div algorithm>
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this algorithm coerces |value| into an appropriate type, as it attempts to convert DOMStrings. Also describe how it fails (i.e. by throwing a TypeError)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.


6. For each |value| in |values|:
6. For each |value| in |values| if the [=algorithm to check if any given value is of a certain type=] described below exits
gracefully append the returned object to |values to append|
Copy link
Contributor

Choose a reason for hiding this comment

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

s/exits/does not throw/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Contributor Author

@nainar nainar left a comment

Choose a reason for hiding this comment

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

Made the changes you asked for, PTAL? Thanks!


6. For each |value| in |values|:
6. For each |value| in |values| if the [=algorithm to check if any given value is of a certain type=] described below exits
gracefully append the returned object to |values to append|
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

</div>

<div algorithm>
This section describes the <dfn>algorithm to check if any given |value| is of a certain type</dfn>:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

7. Append |values to append| to the end of |entry|’s list.
</div>

<div algorithm>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

</div>

<div algorithm>
This section describes the <dfn>algorithm that coerces value into an appropriate type for a given property</dfn>, por fails and throws a {{TypeError}}:
Copy link
Contributor

Choose a reason for hiding this comment

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

s/por/or/

@shans shans merged commit 4efe2f5 into w3c:master Jul 25, 2017
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.

2 participants