Skip to content
Snippets Groups Projects
Commit f2d763cd authored by Koen J's avatar Koen J
Browse files

Updated Rumble and Youtube and added tagName and parentElement to DOMParser.

parent 12a9b99f
No related branches found
No related tags found
No related merge requests found
......@@ -68,6 +68,10 @@ class PackageDOMParser : V8Package {
return result;
}
@V8Property
fun parentElement(): DOMNode? {
return parentNode();
}
@V8Property
fun attributes(): Map<String, String> = _element.attributes().associate { Pair(it.key, it.value) }
@V8Property
fun innerHTML(): String = _element.html();
......@@ -76,6 +80,8 @@ class PackageDOMParser : V8Package {
@V8Property
fun textContent(): String = _element.text();
@V8Property
fun tagName(): String = _element.tagName().uppercase();
@V8Property
fun text(): String = _element.text().ifEmpty { data() };
@V8Property
fun data(): String = _element.data();
......
Subproject commit bedbc4a9891913e0bfc06b94383a89478274e79d
Subproject commit cbfe372bcc7bf9c339809c30291b85c53bfa2f7d
Subproject commit 91639d939738d9cc81ebdb1cd047ead9edd3a5e8
Subproject commit a4766ec223e4711dc2870060c1dce24d64470938
Subproject commit bedbc4a9891913e0bfc06b94383a89478274e79d
Subproject commit cbfe372bcc7bf9c339809c30291b85c53bfa2f7d
Subproject commit 91639d939738d9cc81ebdb1cd047ead9edd3a5e8
Subproject commit a4766ec223e4711dc2870060c1dce24d64470938
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment