Skip to content

Conversation

@jonnyzzz
Copy link
Member

property syntax. Received element is not cached and received
directly from the [Document] by calling [Document.getElementById]
function on every property access. Throws an exception if element
is not found or has different type
To access an element with theId ID use the following property declaration

val theID by document.gettingElementById

To access an element of specific type, just add it to the property declaration

val theID : HTMLImageElement by document.gettingElementById

see for more details:
https://youtrack.jetbrains.com/issue/KT-32552

@jonnyzzz
Copy link
Member Author

Also reported in JetBrains/kotlin#2458

property syntax. Received element is not cached and received
directly from the [Document] by calling [Document.getElementById]
function on every property access. Throws an exception if element
is not found or has different type
To access an element with theId ID use the following property declaration

```
val theID by document.gettingElementById
```

To access an element of specific type, just add it to the property declaration

```
val theID : HTMLImageElement by document.gettingElementById
```

see for more details:
https://youtrack.jetbrains.com/issue/KT-32552
@e5l e5l self-requested a review January 19, 2024 10:30
@e5l e5l self-assigned this Jan 19, 2024
Copy link
Member

@e5l e5l left a comment

Choose a reason for hiding this comment

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

Hey @jonnyzzz, thanks for the PR and sorry for the delay

LGTM

@e5l e5l merged commit 56694cf into master Jan 19, 2024
@e5l e5l deleted the KT-32552 branch January 19, 2024 10:31
DonRobo referenced this pull request in DonRobo/home-former Jul 25, 2024
)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[org.jetbrains.kotlinx:kotlinx-html-jvm](https://github.com/Kotlin/kotlinx.html)
| `0.10.1` -> `0.11.0` |
[![age](https://developer.mend.io/api/mc/badges/age/maven/org.jetbrains.kotlinx:kotlinx-html-jvm/0.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.jetbrains.kotlinx:kotlinx-html-jvm/0.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.jetbrains.kotlinx:kotlinx-html-jvm/0.10.1/0.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.jetbrains.kotlinx:kotlinx-html-jvm/0.10.1/0.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>Kotlin/kotlinx.html
(org.jetbrains.kotlinx:kotlinx-html-jvm)</summary>

###
[`v0.11.0`](https://github.com/Kotlin/kotlinx.html/releases/tag/0.11.0)

[Compare
Source](https://github.com/Kotlin/kotlinx.html/compare/0.10.1...0.11.0)

#### What's Changed

- Add the `crossorigin` attribute to the `<script>` element by
[@&#8203;lorenzsimon](https://github.com/lorenzsimon) in
[https://github.com/Kotlin/kotlinx.html/pull/248](https://github.com/Kotlin/kotlinx.html/pull/248)
- Security comment for unsafe by
[@&#8203;vonox7](https://github.com/vonox7) in
[https://github.com/Kotlin/kotlinx.html/pull/245](https://github.com/Kotlin/kotlinx.html/pull/245)
- add <u></u> tag by [@&#8203;EnvyIT](https://github.com/EnvyIT) in
[https://github.com/Kotlin/kotlinx.html/pull/241](https://github.com/Kotlin/kotlinx.html/pull/241)
- Converted Repository into a class to force its instantiation in each
execution of the generate task by
[@&#8203;severn-everett](https://github.com/severn-everett) in
[https://github.com/Kotlin/kotlinx.html/pull/222](https://github.com/Kotlin/kotlinx.html/pull/222)
- Fix description of samp and add strike tag by
[@&#8203;MarcinAman](https://github.com/MarcinAman) in
[https://github.com/Kotlin/kotlinx.html/pull/184](https://github.com/Kotlin/kotlinx.html/pull/184)
- Update Kotlin version in `README.md` badge by
[@&#8203;SimonMarquis](https://github.com/SimonMarquis) in
[https://github.com/Kotlin/kotlinx.html/pull/252](https://github.com/Kotlin/kotlinx.html/pull/252)
- Add wasmJs target support. by
[@&#8203;IlyaGulya](https://github.com/IlyaGulya) in
[https://github.com/Kotlin/kotlinx.html/pull/251](https://github.com/Kotlin/kotlinx.html/pull/251)
- Added loading attribute to img tag by
[@&#8203;severn-everett](https://github.com/severn-everett) in
[https://github.com/Kotlin/kotlinx.html/pull/220](https://github.com/Kotlin/kotlinx.html/pull/220)
- Provides a short access to document elements by ID via delegated by
[@&#8203;jonnyzzz](https://github.com/jonnyzzz) in
[https://github.com/Kotlin/kotlinx.html/pull/126](https://github.com/Kotlin/kotlinx.html/pull/126)
- Adding full list of HTML entities by
[@&#8203;severn-everett](https://github.com/severn-everett) in
[https://github.com/Kotlin/kotlinx.html/pull/209](https://github.com/Kotlin/kotlinx.html/pull/209)
- fix samp documentation by
[@&#8203;KotlinIsland](https://github.com/KotlinIsland) in
[https://github.com/Kotlin/kotlinx.html/pull/172](https://github.com/Kotlin/kotlinx.html/pull/172)
- Added onmouseenter and onmouseleave attributes by
[@&#8203;vitek999](https://github.com/vitek999) in
[https://github.com/Kotlin/kotlinx.html/pull/169](https://github.com/Kotlin/kotlinx.html/pull/169)

#### New Contributors

- [@&#8203;lorenzsimon](https://github.com/lorenzsimon) made their
first contribution in
[https://github.com/Kotlin/kotlinx.html/pull/248](https://github.com/Kotlin/kotlinx.html/pull/248)
- [@&#8203;vonox7](https://github.com/vonox7) made their first
contribution in
[https://github.com/Kotlin/kotlinx.html/pull/245](https://github.com/Kotlin/kotlinx.html/pull/245)
- [@&#8203;EnvyIT](https://github.com/EnvyIT) made their first
contribution in
[https://github.com/Kotlin/kotlinx.html/pull/241](https://github.com/Kotlin/kotlinx.html/pull/241)
- [@&#8203;MarcinAman](https://github.com/MarcinAman) made their first
contribution in
[https://github.com/Kotlin/kotlinx.html/pull/184](https://github.com/Kotlin/kotlinx.html/pull/184)
- [@&#8203;SimonMarquis](https://github.com/SimonMarquis) made their
first contribution in
[https://github.com/Kotlin/kotlinx.html/pull/252](https://github.com/Kotlin/kotlinx.html/pull/252)
- [@&#8203;IlyaGulya](https://github.com/IlyaGulya) made their first
contribution in
[https://github.com/Kotlin/kotlinx.html/pull/251](https://github.com/Kotlin/kotlinx.html/pull/251)
- [@&#8203;jonnyzzz](https://github.com/jonnyzzz) made their first
contribution in
[https://github.com/Kotlin/kotlinx.html/pull/126](https://github.com/Kotlin/kotlinx.html/pull/126)
- [@&#8203;KotlinIsland](https://github.com/KotlinIsland) made their
first contribution in
[https://github.com/Kotlin/kotlinx.html/pull/172](https://github.com/Kotlin/kotlinx.html/pull/172)
- [@&#8203;vitek999](https://github.com/vitek999) made their first
contribution in
[https://github.com/Kotlin/kotlinx.html/pull/169](https://github.com/Kotlin/kotlinx.html/pull/169)

**Full Changelog**:
Kotlin/kotlinx.html@0.10.1...0.11.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/DonRobo/home-former).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzguMCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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