<marquee>
and <center>
standard elements. Seriously, just... do it.<ad>
tag to explicitly mark ad sections, making life easier for ad blockers.<spoiler>
tag to mark spoiler-containing sections.<iemode>
tag; anything inside this tag won't break when viewed in Internet Explorer.
<vim>
tag, which acts like a textarea but with Vim keybindings.
Note: To lose focus of the input, the user will have to type the same command they would use to exit Vim. I'm not explaining it because you already know.
Example usage:
<span fakenews="true">Hello, I am misinformation.</span>
Note: The attribute will be added by the article's author from the depths of their heart.
<if>
, <elif>
, and <else>
tags to finally turn HTML into a programming language.
Example usage:
<if id="my-own-if" condition="expression();">
<span>IT'S TRUE</span>
<elif condition="expression2();">
<span>IT'S ELSEIF, NOT ELIF, YOU DAMNED PYTHON PROGRAMMERS</span>
<elif>
<else>
<span>IT'S FALSE</span>
<else>
</if>
// Then in JavaScript
document.querySelector("#my-own-if").evaluate();
<nohtml>
tag to specify alternative content if the browser doesn't support HTML.
Example usage:
<nohtml>
<h1>Your browser doesn't support HTML</h1>
</nohtml>
Example usage:
<DONOTREAD>
<!-- The scrapper will politely and respectfully ignore this part -->
My secret diary
</DONOTREAD>
//
as a valid way to comment because /* */
is too much work.if()
in CSS... oh wait, they already added it... crap.
Example usage
.tesseract {
transform: rotateX(30deg) rotateY(10deg) rotateZ(20deg) rotateW(50deg);
}
Example usage
body {
space: manifold;
padding: 213.5 muggeseggeles;
}
Example usage
!-- {
display: block;
}
Example usage
:root {
private --bg-color: drobifabipoppy; // This variable is private
}
body {
background-color: var(--bg-color); // This won't work because the variable is private
}
Examples:
body {
Like any good exception system, we've added try..catch in CSS
background-color: black;
color: darkblue; // This throws an exception, dark text on dark background
}
body {
try {
font-size: 'Comic Sans';
} catch {
font-size: 'Arial';
}
}
margin-bottom: 32px; }
div
{
Example usage:
const variable1 = 32;
const variable2 = variable1;
variable1 ==== variable2; // false
variable1 ==== variable1; // true
Example usage:
let schrodingerVariable = new QuantumVariable(5);
schrodingerVariable.observe(); // May return 5, or crash the entire browser.
Example code:
const elementFactory = Browser.getInstance().getDocument().instantiateElementFactory();
const elementCreationRequest = new ElementCreationRequest().withType(Browser.HTMLTags.Div);
const createElementInstance = elementFactory.prepareCreateElement(elementCreationRequest);
const divElement = createElementInstance.create();
Note: This does the same as document.createElement("div")
.
JavaScript doesn't have an official mascot, like Tux (Linux), the Firefox fox (Firefox), or the Open Source community (Microsoft). So let's finally introduce an official mascot for JS.
His name is Jabberwockius Snozzlewanger, the logic destroyer.
Note: To make this possible, in the future, you will need a TPM chip to access the internet.
Before:
>> 0.1 + 0.2; // 0.30000000000000004
After:
>> 0.1 + 0.2; // 0.30000000000000000
Example usage:
onlineStorage.setItem("UserAgent", navigator.userAgent);
Now another page can execute this command.
const UA = onlineStorage.getItem("UserAgent");
Browser.getInstance().getWindow().getConsole().log(UA);
This way we eliminate the problems of invasive cookie messages that bother the user and eliminate legal problems for companies when asking for permission to collect user information; everyone wins.
Example usage:
let* ptr = Browser.getMemoryManager().malloc(1024);
// ...
Browser.getMemoryManager().free(ptr); // Remember to free the memory afterwards
This standard library will help us maintain clean and organized development of a freer and better internet.
It will be called something like the Compact Hierarchical Runtime Optimized Module Ecosystem (CHROME) library.
"HTML 6, CSS 4 and JS 2"
by Adrian Bogdan < adrbog @ proton . me >