mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-08-03 06:40:19 +00:00
Updated Rumble and Youtube and added tagName and parentElement to DOMParser.
This commit is contained in:
parent
12a9b99fff
commit
f2d763cdec
5 changed files with 10 additions and 4 deletions
|
@ -68,6 +68,10 @@ class PackageDOMParser : V8Package {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@V8Property
|
@V8Property
|
||||||
|
fun parentElement(): DOMNode? {
|
||||||
|
return parentNode();
|
||||||
|
}
|
||||||
|
@V8Property
|
||||||
fun attributes(): Map<String, String> = _element.attributes().associate { Pair(it.key, it.value) }
|
fun attributes(): Map<String, String> = _element.attributes().associate { Pair(it.key, it.value) }
|
||||||
@V8Property
|
@V8Property
|
||||||
fun innerHTML(): String = _element.html();
|
fun innerHTML(): String = _element.html();
|
||||||
|
@ -76,6 +80,8 @@ class PackageDOMParser : V8Package {
|
||||||
@V8Property
|
@V8Property
|
||||||
fun textContent(): String = _element.text();
|
fun textContent(): String = _element.text();
|
||||||
@V8Property
|
@V8Property
|
||||||
|
fun tagName(): String = _element.tagName().uppercase();
|
||||||
|
@V8Property
|
||||||
fun text(): String = _element.text().ifEmpty { data() };
|
fun text(): String = _element.text().ifEmpty { data() };
|
||||||
@V8Property
|
@V8Property
|
||||||
fun data(): String = _element.data();
|
fun data(): String = _element.data();
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit bedbc4a9891913e0bfc06b94383a89478274e79d
|
Subproject commit cbfe372bcc7bf9c339809c30291b85c53bfa2f7d
|
|
@ -1 +1 @@
|
||||||
Subproject commit 91639d939738d9cc81ebdb1cd047ead9edd3a5e8
|
Subproject commit a4766ec223e4711dc2870060c1dce24d64470938
|
|
@ -1 +1 @@
|
||||||
Subproject commit bedbc4a9891913e0bfc06b94383a89478274e79d
|
Subproject commit cbfe372bcc7bf9c339809c30291b85c53bfa2f7d
|
|
@ -1 +1 @@
|
||||||
Subproject commit 91639d939738d9cc81ebdb1cd047ead9edd3a5e8
|
Subproject commit a4766ec223e4711dc2870060c1dce24d64470938
|
Loading…
Add table
Add a link
Reference in a new issue