Skip to content

Editorial: formalize reflect's default value - #8931

Merged
annevk merged 1 commit into
mainfrom
annevk/reflect-default-value
Feb 27, 2023
Merged

annevk merged 1 commit into
mainfrom
annevk/reflect-default-value

Conversation

@annevk

@annevk annevk commented Feb 22, 2023 •

Copy link
Copy Markdown
Member

And rename some number-related options to be less verbose and more consistent.

Fixes #8926 and fixes #8927.


/common-dom-interfaces.html ( diff )
/form-elements.html ( diff )
/grouping-content.html ( diff )
/input.html ( diff )
/interaction.html ( diff )
/obsolete.html ( diff )
/tables.html ( diff )

And rename some number-related options to be less verbose and more consistent.

Fixes #8926 and fixes #8927.
@annevk annevk added the clarification Standard could be clearer label Feb 22, 2023
@annevk
annevk requested a review from domenic February 22, 2023 13:12

@domenic domenic left a comment

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.

Nice, I like especially how this gives us back-links to the "default value" term from the reflected IDL attribute declarations.

@annevk
annevk merged commit a32ab9b into main Feb 27, 2023
@annevk
annevk deleted the annevk/reflect-default-value branch February 27, 2023 14:10
@tabatkins

Copy link
Copy Markdown
Contributor

I still think "positive", by itself, is ambiguous. Can I suggest "positive non-zero" again?

@domenic

domenic commented Feb 27, 2023 •

Copy link
Copy Markdown
Member

I strongly disagree that's it's ambiguous. Positive is defined as > 0. Positive and non-negative are clearly non-overlapping categories.

@tabatkins

Copy link
Copy Markdown
Contributor

And like I said in my linked comment, that is not true, particularly in the context of the web platform. JS's zero is positive or negative, not unsigned, for example. (Even Math.sign() agrees, as it turns out, since it actually has four possible results: +1, -1, +0, or -0.)

We've had confusion about this exact issue in CSS in the past. I'm not sure if we're 100% consistent, but I know I have rewritten text to be more explicit, at the request of readers who were genuinely unsure.

@annevk

annevk commented Feb 28, 2023

Copy link
Copy Markdown
Member Author

These terms are defined in a way that is unambiguous. In Infra we can take that a step further once we get around to numbers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clarification Standard could be clearer

Development

Successfully merging this pull request may close these issues.

Formalize default value reflection concept Use positive number instead of non-negative number greater than zero

3 participants