From b0ac9c7e88c40727f1d49b2a52925a209b25a04f Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" <destructionator@gmail.com> Date: Thu, 29 Feb 2024 09:53:47 -0500 Subject: [PATCH] body hasnt been a keyword for a long time no need to keep lts anymore on that --- dom.d | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dom.d b/dom.d index 3b947fc..b9950be 100644 --- a/dom.d +++ b/dom.d @@ -1407,11 +1407,19 @@ class Document : FileResource, DomParent { 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() { return getFirstElementByTagName("body"); } + /// ditto + alias body = mainBody; + /// this uses a weird thing... it's [name=] if no colon and /// [property=] if colon string getMeta(string name) {