file_path
stringlengths
3
280
file_language
stringclasses
66 values
content
stringlengths
1
1.04M
repo_name
stringlengths
5
92
repo_stars
int64
0
154k
repo_description
stringlengths
0
402
repo_primary_language
stringclasses
108 values
developer_username
stringlengths
1
25
developer_name
stringlengths
0
30
developer_company
stringlengths
0
82
crates/swc_html_codegen/tests/options/linefeed/crlf/input.html
HTML
<!DOCTYPE html> <html> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_codegen/tests/options/linefeed/crlf/output.html
HTML
<!DOCTYPE html> <html> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_codegen/tests/options/linefeed/lf/input.html
HTML
<!DOCTYPE html> <html> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_codegen/tests/options/linefeed/lf/output.html
HTML
<!DOCTYPE html> <html> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_codegen/tests/options/quotes/false/input.html
HTML
<!DOCTYPE html> <html> <body> <label><input type=checkbox checked name=cheese disabled> Cheese</label> <label><input type=checkbox checked=checked name=cheese disabled=disabled> Cheese</label> <label><input type='checkbox' checked name=cheese disabled=""> Cheese</label> <label><input type= checkbox checked name...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_codegen/tests/options/quotes/false/output.min.html
HTML
<!doctype html><html><head></head><body> <label><input type=checkbox checked name=cheese disabled> Cheese</label> <label><input type=checkbox checked=checked name=cheese disabled=disabled> Cheese</label> <label><input type=checkbox checked name=cheese disabled=""> Cheese</label> <label><input type=checkbox checked nam...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_codegen/tests/options/quotes/true/input.html
HTML
<!DOCTYPE html> <html> <body> <label><input type=checkbox checked name=cheese disabled> Cheese</label> <label><input type=checkbox checked=checked name=cheese disabled=disabled> Cheese</label> <label><input type='checkbox' checked name=cheese disabled=""> Cheese</label> <label><input type= checkbox checked name...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_codegen/tests/options/quotes/true/output.min.html
HTML
<!doctype html><html><head></head><body> <label><input type="checkbox" checked name="cheese" disabled> Cheese</label> <label><input type="checkbox" checked="checked" name="cheese" disabled="disabled"> Cheese</label> <label><input type="checkbox" checked name="cheese" disabled=""> Cheese</label> <label><input type="che...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_codegen/tests/options/self_closing_void_elements/false/input.html
HTML
<link rel="stylesheet" href="https://www.google.com/css/maia.css" type="text/css"> <!-- following are self closing tags --><!-- have no content or child --><html> <head></head><body><br /> <hr /> <input type="text" /> <img src="#URL" alt="image" /> <area shape="rect" coords="0,0,100,100" href="#URL" /> <!-- SVG...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_codegen/tests/options/self_closing_void_elements/false/output.html
HTML
<html> <head><link rel="stylesheet" href="https://www.google.com/css/maia.css" type="text/css"> <!-- following are self closing tags --><!-- have no content or child --> </head><body><br /> <hr /> <input type="text" /> <img src="#URL" alt="image" /> <area shape="rect" coords="0,0,100,100" href="#URL" /> <!-- SVG and ...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_codegen/tests/options/self_closing_void_elements/true/input.html
HTML
<link rel="stylesheet" href="https://www.google.com/css/maia.css" type="text/css"> <!-- following are self closing tags --><!-- have no content or child --><html> <head></head><body><br /> <hr /> <input type="text" /> <img src="#URL" alt="image" /> <area shape="rect" coords="0,0,100,100" href="#URL" /> <svg><te...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_codegen/tests/options/self_closing_void_elements/true/output.html
HTML
<html> <head><link rel="stylesheet" href="https://www.google.com/css/maia.css" type="text/css"> <!-- following are self closing tags --><!-- have no content or child --> </head><body><br> <hr> <input type="text"> <img src="#URL" alt="image"> <area shape="rect" coords="0,0,100,100" href="#URL"> <svg><test /></svg> <ma...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_codegen_macros/src/lib.rs
Rust
#![deny(clippy::all)] extern crate proc_macro; use quote::ToTokens; use syn::{parse_quote, FnArg, ImplItemFn, Type, TypeReference}; #[proc_macro_attribute] pub fn emitter( _attr: proc_macro::TokenStream, item: proc_macro::TokenStream, ) -> proc_macro::TokenStream { let item: ImplItemFn = syn::parse(item)...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/benches/full.rs
Rust
extern crate swc_malloc; use std::{fs::read_to_string, path::Path}; use codspeed_criterion_compat::{black_box, criterion_group, criterion_main, Criterion}; use swc_common::{errors::HANDLER, FileName}; use swc_html_ast::{Document, DocumentFragment, DocumentMode, Element, Namespace}; use swc_html_codegen::{writer::basi...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/src/lib.rs
Rust
#![deny(clippy::all)] use std::{borrow::Cow, cmp::Ordering, mem::take}; use once_cell::sync::Lazy; use rustc_hash::FxHashMap; use serde_json::Value; use swc_atoms::{atom, Atom}; use swc_cached::regex::CachedRegex; use swc_common::{ comments::SingleThreadedComments, sync::Lrc, EqIgnoreSpan, FileName, FilePathMappi...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/src/option.rs
Rust
use serde::{de::DeserializeOwned, Deserialize, Serialize}; use swc_cached::regex::CachedRegex; #[cfg(feature = "default-css-minifier")] use swc_css_codegen::CodegenConfig as CssCodegenOptions; #[cfg(feature = "default-css-minifier")] use swc_css_minifier::options::MinifyOptions as CssMinifyOptions; #[cfg(feature = "def...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/document_fragment/0/svg_svg/input.html
HTML
<circle cx="-50" cy="-50" r="30" style="fill:red" /> <image x="10" y="20" width="80" height="80" href="recursion.svg" />
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/document_fragment/0/svg_svg/output.min.html
HTML
<circle cx=-50 cy=-50 r=30 style=fill:red /> <image x=10 y=20 width=80 height=80 href=recursion.svg />
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/document_fragment/1/style/input.html
HTML
a { color: red; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/document_fragment/1/style/output.min.html
HTML
a{color:red}
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/document_fragment/2/div/input.html
HTML
<div>test</div> <div>test</div> <div>test</div> <div>test</div> <div> test <div>test</div> test </div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/document_fragment/2/div/output.min.html
HTML
<div>test</div><div>test</div><div>test</div><div>test</div><div>test<div>test</div>test</div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/document_fragment/3/div/input.html
HTML
<div>test</div> <div>test</div> <div>test</div> <div>test</div> <div> test <div>test</div> test </div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/document_fragment/3/div/output.min.html
HTML
<div>test</div> <div>test</div> <div>test</div> <div>test</div> <div> test <div>test</div> test </div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/document_fragment/4/div/input.html
HTML
<div>test</div> <div>test</div> <div>test</div> <div>test</div> <div> test <div>test</div> test </div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/document_fragment/4/div/output.min.html
HTML
<div>test</div><div>test</div><div>test</div><div>test</div><div>test<div>test</div>test</div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/document_fragment/5/pre/input.html
HTML
<code> B </code> <!-- test --> <code> C <code> D </code> </code>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/document_fragment/5/pre/output.min.html
HTML
<code> B </code> <code> C <code> D </code> </code>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/document_fragment/6/xmp/input.html
HTML
test test test
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/document_fragment/6/xmp/output.min.html
HTML
test test test
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/document_fragment/7/div/input.html
HTML
<span>test</span> <span>test</span>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/document_fragment/7/div/output.min.html
HTML
<span>test</span> <span>test</span>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/document_fragment/8/div/input.html
HTML
<span>test</span> <span>test</span>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/document_fragment/8/div/output.min.html
HTML
<span>test</span> <span>test</span>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/document_fragment/9.div/input.html
HTML
<div b="1" a="2" c="3"></div> <div c="3" a="2" b="1" ></div> <div unknown="a" c="3"></div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/document_fragment/9.div/output.min.html
HTML
<div c=3 b=1 a=2></div> <div c=3 b=1 a=2></div> <div c=3 unknown=a></div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/document_fragment/basic/input.html
HTML
<div class=" class class-1 "> test </div> <!-- test -->
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/document_fragment/basic/output.min.html
HTML
<div class="class class-1"> test </div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture.rs
Rust
#![deny(warnings)] use std::{ fs::read_to_string, path::{Path, PathBuf}, }; use swc_html_ast::{Document, DocumentFragment, DocumentMode, Element, Namespace}; use swc_html_codegen::{ writer::basic::{BasicHtmlWriter, BasicHtmlWriterConfig}, CodeGenerator, CodegenConfig, Emit, }; use swc_html_minifier::{...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/accept/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <input type="file" id="avatar" name="avatar" accept="image/png, image/jpeg"> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/accept/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><input type=file id=avatar name=avatar accept=image/png,image/jpeg>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/accesskey/input.html
HTML
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <p>If you n...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/accesskey/output.min.html
HTML
<!doctype html><html lang=en><meta charset=UTF-8><meta name=viewport content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0"><meta http-equiv=X-UA-Compatible content="ie=edge"><title>Document</title><p>If you need to relax, press the <strong><u>S</u></strong>tress relieve...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/aria-labelledby/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <a href="13.html" id="rm13" aria-labelledby=" rm13 attr ">read more</a> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/aria-labelledby/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><a href=13.html id=rm13 aria-labelledby="rm13 attr">read more</a>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/boolean-keep/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <p><button autofocus value="next">Button</button></p> <p><button autofocus="autofocus" value="next">Button</button></p> <p><button autofocus=" autofocus " value="next">Button</button></p> <p><button autofocus="true" value="next">But...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/boolean-keep/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><p><button autofocus value=next>Button</button></p> <p><button autofocus=autofocus value=next>Button</button></p> <p><button autofocus=" autofocus " value=next>Button</button></p> <p><button autofocus=true value=next>Button</button></p> <p><button autofocus=false ...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/boolean/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <p><button autofocus value="next">Button</button></p> <p><button autofocus="autofocus" value="next">Button</button></p> <p><button autofocus=" autofocus " value="next">Button</button></p> <p><button autofocus="true" value="next">But...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/boolean/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><p><button autofocus value=next>Button</button></p> <p><button autofocus value=next>Button</button></p> <p><button autofocus value=next>Button</button></p> <p><button autofocus value=next>Button</button></p> <p><button autofocus value=next>Button</button></p> <img dr...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/class/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <p class=" foo bar ">foo bar baz</p> <p class=" foo ">foo bar baz</p> <p class=" foo ">foo bar baz</p> <p class=" foo class1 class-23 ">foo bar baz</p> <p class=" f...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/class/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><p class="bar foo">foo bar baz</p> <p class=foo>foo bar baz</p> <p class=foo>foo bar baz</p> <p class="class-23 class1 foo">foo bar baz</p> <p class="bar foo qqq">foo bar baz</p> <p class="bar foo">foo bar baz</p> <div class="bar baz foo"></div> <...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/colspan/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <table width="200" border="1" align="center" cellpadding="4" cellspacing="0"> <tr> <th colspan="1" rowspan="1" scope="col">Cell 1</th> </tr> <tr> <td class="test" colspan="1" rowspan="1...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/colspan/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><table width=200 border=1 align=center cellpadding=4 cellspacing=0> <tr> <th colspan=1 rowspan=1 scope=col>Cell 1</th> </tr> <tr> <td class=test colspan=1 rowspan=1 bgcolor=#FBF0DB> Cell 1 </t...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/content/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> <meta name="keywords" content=" british , type face , font , fonts , highway , highways "> <meta name="keywords" content=" a ,b,,d d "> </head> <body> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/content/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><meta name=keywords content="british,type face,font,fonts,highway,highways"><meta name=keywords content="a,b,,d d">
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/contenteditable/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <div contenteditable="true">Stress reliever</div> <div contenteditable="">Stress reliever</div> <div contenteditable="false">Stress reliever</div> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/contenteditable/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><div contenteditable="">Stress reliever</div> <div contenteditable="">Stress reliever</div> <div contenteditable=false>Stress reliever</div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/crossorigin/input.html
HTML
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <link rel="stylesheet" href="test.css" crossorigin="anonymous"> </head> <body> <img src="test.png" alt="test" crossorigin=""> <img src="test.png" alt="test" crossorigin="unknown"> <img src="test.png" alt="test" crossorigi...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/crossorigin/output.min.html
HTML
<!doctype html><html lang=en><meta charset=UTF-8><title>Document</title><link rel=stylesheet href=test.css crossorigin><img src=test.png alt=test crossorigin> <img src=test.png alt=test crossorigin=unknown> <img src=test.png alt=test crossorigin> <img src=test.png alt=test crossorigin=use-credentials> <audio src=test.m...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/custom-attribute/input.html
HTML
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <title>Document</title> </head> <body> <button type="button" onclick="a(1 + 2)" ng-click="a(1 + 2)" data-cli...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/custom-attribute/output.min.html
HTML
<!doctype html><html lang=en><meta charset=UTF-8><meta name=viewport content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0"><title>Document</title><button type=button onclick=a(3) ng-click=a(3) data-click=a(3)></button> <button type=button onclick=a(3) ng-click=a(3) data-cli...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/data/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <input class="form-control" type="text" style="" id="{{vm.formInputName}}" name="{{vm.formInputName}}" placeholder="YYYY-MM-DD" date-range-picker data-ng-model="vm.value" da...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/data/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><input class=form-control type=text id={{vm.formInputName}} name={{vm.formInputName}} placeholder=YYYY-MM-DD date-range-picker data-ng-model=vm.value data-ng-model-options="{ debounce: 1000 }" data-ng-pattern=vm.options.format data-options=vm.datepickerOptions>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/disabled-normalize_attributes/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> <link rel="stylesheet" href="test.css" media="screen and (min-width: 1024px)"> </head> <body> <a rel="foo bar baz"></a> <div onclick="javascript:alert( 'test' ) ;"></div> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/disabled-normalize_attributes/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><link rel=stylesheet href=test.css media="screen and (min-width:1024px)"><a rel="bar baz foo"></a> <div onclick='alert("test")'></div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/disabled-sort-classes/input.html
HTML
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <div class="b a d"></div> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/disabled-sort-classes/output.min.html
HTML
<!doctype html><html lang=en><meta charset=UTF-8><title>Document</title><div class="b a d"></div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/empty-attributes/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <div class=" ">test</div> <div class="">test</div> <div id=" ">test</div> <div id="">test</div> <div style=" ">test</div> <div style="">test</div> <div onblur="javascript:alert('test')">test</div> <div onblur="">test</div> <div o...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/empty-attributes/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><div>test</div> <div>test</div> <div id=" ">test</div> <div>test</div> <div>test</div> <div>test</div> <div onblur='alert("test")'>test</div> <div>test</div> <div onblur=#>test</div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/empty-disabled/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <p id="" class="" STYLE=" " title="\n" lang="" dir="">x</p> <p onclick="" ondblclick=" " onmousedown="" ONMOUSEUP="" onmouseover=" " onmousemove="" ...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/empty-disabled/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><p id="" class="" style="" title=\n lang="" dir="">x</p> <p onclick="" ondblclick="" onmousedown="" onmouseup="" onmouseover="" onmousemove="" onmouseout="" onkeypress="" onkeydown="" onkeyup="">x</p> <div class=""></div> <div style=""></div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/empty/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <p id="" class="" STYLE=" " title="\n" lang="" dir="">x</p> <p onclick="" ondblclick=" " onmousedown="" ONMOUSEUP="" onmouseover=" " onmousemove="" ...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/empty/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><p title=\n lang="" dir="">x</p> <p>x
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/exportparts/input.html
HTML
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Shadow parts example</title> <style> tabbed-custom-element::part(tab) { color: #0c0c0dcc; border-bottom: transparent solid 2px; } tabbed-custom-element::part(tab):hover { background-color: #0c0c0d19; border-color: #0...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/exportparts/output.min.html
HTML
<!doctype html><meta charset=utf-8><title>Shadow parts example</title><style>tabbed-custom-element::part(tab){color:#0c0c0dcc;border-bottom:transparent solid 2px}tabbed-custom-element::part(tab):hover{background-color:#0c0c0d19;border-color:#0c0c0d33}tabbed-custom-element::part(tab):hover:active{background-color:#0c0c0...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/form/input.html
HTML
<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>Test</title> </head> <body> <form action="handler.php" method="post"> <input type="text" name="str"> <input type="submit" value="send"> </form> <form action="handler.php" method="get"> <input type="text" name="str"> <input type="submit"...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/form/output.min.html
HTML
<!doctype html><meta charset=utf-8><title>Test</title><form action=handler.php method=post> <input type=text name=str> <input type=submit value=send> </form> <form action=handler.php method=get> <input type=text name=str> <input type=submit value=send> <input type=text value=foo> <input type=che...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/headers/input.html
HTML
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <table> ...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/headers/output.min.html
HTML
<!doctype html><html lang=en><meta charset=UTF-8><meta name=viewport content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0"><meta http-equiv=X-UA-Compatible content="ie=edge"><title>Document</title><table> <tr> <th id=name>Name</th> <th id=email>Email</th...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/html-xhtml/input.html
HTML
<!DOCTYPE html > <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink"> <head> <title>Title of the document</title> </head> <body> The content of the document...... </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/html-xhtml/output.min.html
HTML
<!doctype html><title>Title of the document</title>The content of the document......
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/id/input.html
HTML
<!doctype html> <html> <head> <title>Document</title> </head> <body> <div class="foo" id="foo">Foo</div> <div id="bar" class="bar">Bar</div> <div style="color:red;" class="baz" tabindex="1" id="baz">Baz</div> <div id="test"></div> <div id="test"></div> <div a b c d e f g></div> <div c d e f g b></div> </body> </htm...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/id/output.min.html
HTML
<!doctype html><title>Document</title><div class=foo id=foo>Foo</div> <div id=bar class=bar>Bar</div> <div style=color:red class=baz tabindex=1 id=baz>Baz</div> <div id=test></div> <div id=test></div> <div a b c d e f g></div> <div c d e f g b></div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/iframe/input.html
HTML
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <iframe id=...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/iframe/output.min.html
HTML
<!doctype html><html lang=en><meta charset=UTF-8><meta name=viewport content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0"><meta http-equiv=X-UA-Compatible content="ie=edge"><title>Document</title><iframe id=test src=test.html height=150 width=300 loading=eager fetchpriorit...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/imagesrcset/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> <link rel="preload" as="image" imagesrcset="dog-cropped-1x.jpg, dog-cropped-2x.jpg 2x" media="(max-width: 800px)"> <link rel="preload" as="image" imagesrcset="dog-wide-1x.jpg, dog-wide-2x.jpg 2x" media="(...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/imagesrcset/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><link rel=preload as=image imagesrcset="dog-cropped-1x.jpg,dog-cropped-2x.jpg 2x" media=(max-width:800px)><link rel=preload as=image imagesrcset="dog-wide-1x.jpg,dog-wide-2x.jpg 2x" media=(min-width:801px)><link rel=preload as=image imagesrcset="wolf_400px.jpg 400w,wo...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/img/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <img src="test.png" alt="test" decoding="auto" loading="eager" referrerpolicy="strict-origin-when-cross-origin"> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/img/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><img src=test.png alt=test decoding=auto loading=eager referrerpolicy=strict-origin-when-cross-origin>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/input/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <input name="a" type="text"> <input name="b" type="TEXT"> <input name="c" type=" TEXT "> <input name="d" size=" 20 "> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/input/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><input name=a type=text> <input name=b type=text> <input name=c type=text> <input name=d size=20>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/itemid/input.html
HTML
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <dl itemsco...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/itemid/output.min.html
HTML
<!doctype html><html lang=en><meta charset=UTF-8><meta name=viewport content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0"><meta http-equiv=X-UA-Compatible content="ie=edge"><title>Document</title><dl itemscope itemtype=https://schema.org/Book itemid="urn:isbn:0-374-22848-5...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/itemtype/input.html
HTML
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <span itemp...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/itemtype/output.min.html
HTML
<!doctype html><html lang=en><meta charset=UTF-8><meta name=viewport content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0"><meta http-equiv=X-UA-Compatible content="ie=edge"><title>Document</title><span itemprop=offers itemscope itemtype=http://schema.org/Offer> Regular...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/javascript-prefix/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <form action="/test"> <input type="text" onkeydown="javascript:myFunction()"> </form> <div type="text" onmouseover="javascript:myFunction()">test</div> <div type="text" onmouseover=" javascript:myFunction() ">...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/javascript-prefix/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><form action=/test> <input type=text onkeydown=myFunction()> </form> <div type=text onmouseover=myFunction()>test</div> <div type=text onmouseover=myFunction()>test</div> <div type=text>test</div> <svg version=1.1 viewBox="0 0 100 100" pres...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/javascript-urls-1/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <a href=" javascript: alert( 'test' ) ">a</a> <a href=" JAVASCRIPT: alert( 'test' ) ">b</a> <iframe src="javascript: alert( 'test' ) " frameborder="0"></iframe> <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> ...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/javascript-urls-1/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><a href='javascript:alert("test")'>a</a> <a href='javascript:alert("test")'>b</a> <iframe src='javascript:alert("test")' frameborder=0></iframe> <svg viewBox="0 0 100 100"> <a href='javascript:alert("test")'> <circle cx=50 cy=40 r=35 /> </a> ...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/attribute/javascript-urls/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <a href=" javascript: alert( 'test' ) ">a</a> <a href=" JAVASCRIPT: alert( 'test' ) ">b</a> <a href=" JAVASCRIPT: broken;;( ">b</a> <iframe src="javascript: alert( 'test' ) " frameborder="0"></iframe> <svg viewBox="0 0 10...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University