Skip to content

Commit

Permalink
Further improvements to benefits (feature detection)
Browse files Browse the repository at this point in the history
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
  • Loading branch information
rahimabdi and keithamus authored Oct 21, 2024
1 parent 545e80b commit 6cab2c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/aria-idl.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ See:
- Define interfaces in a way that isn’t tied to a programming language, e.g., could have JavaScript/C++/Python or any other language implementation
- Can be used to generate code (IDL files can be used to generate code across multiple languages)
- Facilitates cross-language integration (e.g., Python backend can communicate with JavaScript frontend)
- ***Feature detection***: If (el.someIDLAttribute) is true, then the feature is supported which facilitates user agent detection for that particular attribute
- ***Feature detection***: If (`'someIDLAttribute' in el`) is `true`, then the feature is supported; facilitating user agent detection for that particular attribute
- ***Type safety***:
- IDL defines types for properties/methods
- Can ensure that only valid data types are passed/returned from APIs which helps with catching errors
Expand Down

0 comments on commit 6cab2c1

Please sign in to comment.