diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-12-30 12:22:41 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-12-30 13:23:09 -0400 |
commit | d62927e83d772254b2737e11bc66d28d72bc6fa3 (patch) | |
tree | 33939c59e3b4c74ca46a7b7250a6e2290338f747 /src | |
parent | 5d6d412cb195a316aab1131f96bb1134af4a62bd (diff) |
html: Tag.contentOnly
Diffstat (limited to 'src')
-rw-r--r-- | src/util/html.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/html.js b/src/util/html.js index 7e3731f4..7a73e567 100644 --- a/src/util/html.js +++ b/src/util/html.js @@ -284,6 +284,10 @@ export class Tag { } } + get contentOnly() { + return this.tagName === '' && this.attributes.blank; + } + #setAttributeFlag(attribute, value) { if (value) { this.attributes.set(attribute, true); |