mirror of
https://github.com/adamdruppe/arsd.git
synced 2025-04-30 15:20:02 +03:00
body hasnt been a keyword for a long time no need to keep lts anymore on that
This commit is contained in:
parent
a5f8b914d8
commit
b0ac9c7e88
1 changed files with 9 additions and 1 deletions
10
dom.d
10
dom.d
|
@ -1407,11 +1407,19 @@ class Document : FileResource, DomParent {
|
||||||
return findFirst(&doesItMatch);
|
return findFirst(&doesItMatch);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// This returns the <body> element, if there is one. (It different than Javascript, where it is called 'body', because body is a keyword in D.)
|
/++
|
||||||
|
This returns the <body> element, if there is one. (It different than Javascript, where it is called 'body', because body used to be a keyword in D.)
|
||||||
|
|
||||||
|
History:
|
||||||
|
`body` alias added February 26, 2024
|
||||||
|
+/
|
||||||
Element mainBody() {
|
Element mainBody() {
|
||||||
return getFirstElementByTagName("body");
|
return getFirstElementByTagName("body");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// ditto
|
||||||
|
alias body = mainBody;
|
||||||
|
|
||||||
/// this uses a weird thing... it's [name=] if no colon and
|
/// this uses a weird thing... it's [name=] if no colon and
|
||||||
/// [property=] if colon
|
/// [property=] if colon
|
||||||
string getMeta(string name) {
|
string getMeta(string name) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue