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_parser/tests/html5lib-tests-fixture/webkit01_dat.8.html
HTML
<foo bar="baz"><potato quack="duck"></potato></foo>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/html5lib-tests-fixture/webkit01_dat.9.html
HTML
<foo></foo bar="baz"><potato></potato quack="duck">
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/html5lib-tests-fixture/webkit02_dat.0.html
HTML
<foo bar=qux/>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/html5lib-tests-fixture/webkit02_dat.1.script_on.html
HTML
<p id="status"><noscript><strong>A</strong></noscript><span>B</span></p>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/html5lib-tests-fixture/webkit02_dat.10.html
HTML
<table><input>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/html5lib-tests-fixture/webkit02_dat.11.html
HTML
<b><em><foo><foo><aside></b>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/html5lib-tests-fixture/webkit02_dat.12.html
HTML
<b><em><foo><foo><aside></b></em>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/html5lib-tests-fixture/webkit02_dat.13.html
HTML
<b><em><foo><foo><foo><aside></b>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/html5lib-tests-fixture/webkit02_dat.14.html
HTML
<b><em><foo><foo><foo><aside></b></em>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/html5lib-tests-fixture/webkit02_dat.15.fragment_div.html
HTML
<b><em><foo><foo><foo><foo><foo><foo><foo><foo><foo><foo><aside></b></em>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/html5lib-tests-fixture/webkit02_dat.16.fragment_div.html
HTML
<b><em><foo><foob><foob><foob><foob><fooc><fooc><fooc><fooc><food><aside></b></em>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/html5lib-tests-fixture/webkit02_dat.17.fragment_select.html
HTML
<option><XH<optgroup></optgroup>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/html5lib-tests-fixture/webkit02_dat.18.html
HTML
<svg><foreignObject><div>foo</div><plaintext></foreignObject></svg><div>bar</div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/html5lib-tests-fixture/webkit02_dat.19.html
HTML
<svg><foreignObject></foreignObject><title></svg>foo
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/html5lib-tests-fixture/webkit02_dat.2.html
HTML
<p id="status"><noscript><strong>A</strong></noscript><span>B</span></p>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/html5lib-tests-fixture/webkit02_dat.20.html
HTML
</foreignObject><plaintext><div>foo</div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/html5lib-tests-fixture/webkit02_dat.3.html
HTML
<div><sarcasm><div></div></sarcasm></div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/html5lib-tests-fixture/webkit02_dat.4.html
HTML
<html><body><img src="" border="0" alt="><div>A</div></body></html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/html5lib-tests-fixture/webkit02_dat.5.html
HTML
<table><td></tbody>A
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/html5lib-tests-fixture/webkit02_dat.6.html
HTML
<table><td></thead>A
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/html5lib-tests-fixture/webkit02_dat.7.html
HTML
<table><td></tfoot>A
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/html5lib-tests-fixture/webkit02_dat.8.html
HTML
<table><thead><td></tbody>A
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/html5lib-tests-fixture/webkit02_dat.9.html
HTML
<legend>test</legend>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/html5lib_tests.rs
Rust
// #![allow(clippy::redundant_clone)] // #![allow(clippy::while_let_on_iterator)] // use std::{fs, mem::take, path::PathBuf}; // use common::{document_span_visualizer, DomVisualizer}; // use rustc_hash::FxHashSet; // use serde_json::Value; // use swc_atoms::Atom; // use swc_common::{ // input::{SourceFileInput, StringInput}, // BytePos, // }; // use swc_html_ast::*; // use swc_html_parser::{ // error::ErrorKind, // lexer::{Lexer, State}, // parser::{input::ParserInput, PResult, Parser, ParserConfig}, // }; // use swc_html_visit::VisitMutWith; // use testing::NormalizedOutput; // #[path = "common/mod.rs"] // mod common; // #[testing::fixture("tests/html5lib-tests-fixture/**/*.html")] // fn span_visualizer(input: PathBuf) { // document_span_visualizer(input, Default::default(), true) // } // fn unescape(s: &str) -> Option<String> { // let mut out = String::with_capacity(s.len()); // let mut it = s.chars().peekable(); // loop { // match it.next() { // None => return Some(out), // Some('\\') => { // if it.peek() != Some(&'u') { // panic!("can't understand escape"); // } // let hex: String = it.by_ref().take(4).collect(); // match u32::from_str_radix(&hex, // 16).ok().and_then(char::from_u32) { // TODO fix me // surrogate paris // Some of the tests use lone surrogates, // but we have no // way to represent them in the UTF-8 // input to our parser. // Since these can only come from // script, we will catch // them there. // None => return None, // Some(c) => out.push(c), // } // } // Some(c) => out.push(c), // } // } // } // // TODO we need to enable `preserve_order` for serde, but we can't https://github.com/tkaitchuck/aHash/issues/95, so we sort attributes // #[testing::fixture("tests/html5lib-tests/tokenizer/**/*.test")] // fn html5lib_test_tokenizer(input: PathBuf) { // let filename = input.to_str().expect("failed to parse path"); // let contents = fs::read_to_string(filename).expect("Something went wrong // reading the file"); let obj: Value = // serde_json::from_str(&contents).expect("json parse error"); let tests = // match obj.get("tests".to_string()) { Some(Value::Array(tests)) => // tests, _ => return, // }; // for test in tests.iter() { // let description = test // .get("description") // .expect("failed to get input in test"); // let states = if let Some(initial_states) = test.get("initialStates") // { let mut states = Vec::new(); // let json_states: Vec<String> = // serde_json::from_value(initial_states.clone()) // .expect("failed to get input in test"); // for json_state in json_states { // match &*json_state { // "Data state" => { // states.push(State::Data); // } // "PLAINTEXT state" => { // states.push(State::PlainText); // } // "RCDATA state" => { // states.push(State::Rcdata); // } // "RAWTEXT state" => { // states.push(State::Rawtext); // } // "Script data state" => { // states.push(State::ScriptData); // } // "CDATA section state" => { // states.push(State::CdataSection); // } // _ => { // unreachable!() // } // } // } // states // } else { // vec![State::Data] // }; // for state in states.iter() { // eprintln!("==== ==== Description ==== ====\n{}\n", description); // let json_input = test["input"].clone(); // let mut input: String = // serde_json::from_value(json_input).expect("failed to get // input in test"); // let need_double_escaped = test.get("doubleEscaped").is_some(); // if need_double_escaped { // input = match unescape(&input) { // Some(unescaped) => unescaped, // _ => { // continue; // } // }; // } // eprintln!("==== ==== Input ==== ====\n{}\n", input); // let json_output = test["output"].clone(); // let output = json_output.to_string(); // eprintln!("==== ==== Output ==== ====\n{}\n", output); // let lexer_str_input = StringInput::new(&input, BytePos(0), // BytePos(input.len() as u32)); let mut lexer = // Lexer::new(lexer_str_input); // lexer.set_input_state(state.clone()); // if let Some(last_start_tag) = test.get("lastStartTag") { // let last_start_tag: Atom = // serde_json::from_value(last_start_tag.clone()) // .expect("failed to get lastStartTag in test"); // lexer.set_last_start_tag_name(&last_start_tag); // } // let mut actual_tokens = Vec::new(); // loop { // let token_and_span = lexer.next(); // if token_and_span.is_none() { // break; // } // let mut new_token = token_and_span.unwrap().token.clone(); // match new_token { // Token::Doctype { ref mut raw, .. } => { // *raw = None; // } // Token::StartTag { // ref mut raw_tag_name, // ref mut attributes, // .. // } => { // *raw_tag_name = None; // let mut new_attributes = Vec::new(); // let mut already_seen: FxHashSet<Atom> = // Default::default(); // for mut attribute in take(attributes) { // if already_seen.contains(&attribute.name) { // continue; // } // already_seen.insert(attribute.name.clone()); // if attribute.value.is_none() { // attribute.value = Some("".into()); // } // attribute.span = Default::default(); // attribute.raw_name = None; // attribute.raw_value = None; // new_attributes.push(attribute); // } // new_attributes.sort_by(|a, b| // a.name.partial_cmp(&b.name).unwrap()); // *attributes = new_attributes; // } // Token::EndTag { // ref mut raw_tag_name, // ref mut attributes, // ref mut is_self_closing, // .. // } => { // *raw_tag_name = None; // *is_self_closing = false; // *attributes = Vec::new(); // } // Token::Character { ref mut raw, .. } => { // *raw = None; // } // Token::Comment { ref mut raw, .. } => { // *raw = None; // } // _ => {} // } // actual_tokens.push(new_token); // } // let mut expected_tokens: Vec<Token> = Vec::new(); // if let Some(output_tokens) = json_output.as_array() { // for output_token in output_tokens { // match output_token { // Value::Array(token_parts) => { // let tokens = match // token_parts[0].as_str().expect("failed") { // "DOCTYPE" => { let name: Option<String> = // // serde_json::from_value(token_parts[1].clone()) // .expect("failed to deserialize"); let // public_id: Option<String> = // serde_json::from_value(token_parts[2].clone()) // .expect("failed to deserialize"); let // system_id: Option<String> = // serde_json::from_value(token_parts[3].clone()) // .expect("failed to deserialize"); let // correctness: bool = // serde_json::from_value(token_parts[4].clone()) // .expect("failed to deserialize"); // vec![Token::Doctype { // name: name.map(|v| v.into()), // force_quirks: !correctness, // public_id: public_id.map(|v| // v.into()), system_id: // system_id.map(|v| v.into()), raw: // None, }] // } // "StartTag" => { // let tag_name: String = // // serde_json::from_value(token_parts[1].clone()) // .expect("failed to deserialize"); let mut // attributes = Vec::new(); // if let Some(json_attributes) = // token_parts.get(2) { let // obj_attributes: Value = // serde_json::from_value(json_attributes.clone()) // .expect("failed to deserialize"); // match obj_attributes { // Value::Object(obj) => { // for key in obj.keys() { // let json_value = // obj.get(key).expect( // "failed to get value for attribute", // ); let value: // Option<String> = // serde_json::from_value(json_value.clone()) // .expect("failed to deserialize"); // // attributes.push(AttributeToken { // span: Default::default(), // name: key.clone().into(), // raw_name: None, // value: value.map(|v| v.into()), // raw_value: None, }) // } // } // _ => { // unreachable!(); // } // } // } // let mut is_self_closing = false; // if let Some(json_is_self_closing) = // token_parts.get(3) { let value: bool // = // serde_json::from_value(json_is_self_closing.clone()) // .expect("failed to deserialize"); // is_self_closing = value; // } // attributes.sort_by(|a, b| // a.name.partial_cmp(&b.name).unwrap()); // vec![Token::StartTag { // tag_name: tag_name.into(), // raw_tag_name: None, // is_self_closing, // attributes, // }] // } // "EndTag" => { // let tag_name: String = // // serde_json::from_value(token_parts[1].clone()) // .expect("failed to deserialize"); // vec![Token::EndTag { // tag_name: tag_name.into(), // raw_tag_name: None, // is_self_closing: false, // attributes: Vec::new(), // }] // } // "Character" => { // let mut data: String = // // serde_json::from_value(token_parts[1].clone()) // .expect("failed to deserialize"); // if need_double_escaped { // data = match unescape(&data) { // Some(v) => v, // _ => { // continue; // } // }; // } // let mut tokens = Vec::new(); // for c in data.chars() { // tokens.push(Token::Character { // value: c, // raw: None, // }) // } // tokens // } // "Comment" => { // let mut data: String = // // serde_json::from_value(token_parts[1].clone()) // .expect("failed to deserialize"); // if need_double_escaped { // data = match unescape(&data) { // Some(v) => v, // _ => { // continue; // } // }; // } // vec![Token::Comment { // data: data.into(), // raw: None, // }] // } // _ => { // unreachable!("unknown token {}", // token_parts[0]) } // }; // expected_tokens.extend(tokens); // } // _ => { // unreachable!(); // } // } // } // } // let actual = // serde_json::to_string(&actual_tokens).expect("failed to // serialize actual tokens"); let expected = // serde_json::to_string(&expected_tokens) .expect("failed to // serialize expected tokens"); // if let Some(json_errors) = test.get("errors") { // let expected_errors = json_errors.as_array().expect("failed // to deserialize error"); let actual_errors = // lexer.take_errors(); // eprintln!("==== ==== Errors ==== ====\n{:?}\n", // actual_errors); // assert_eq!(actual_errors.len(), expected_errors.len()); // for expected_error in expected_errors.iter() { // let obj_expected_code = // expected_error.as_object().expect("failed to get // error"); let expected_code = match // obj_expected_code.get("code") { Some(expected_code) // => match expected_code.as_str() { // Some("eof-in-doctype") => ErrorKind::EofInDoctype, // Some("eof-in-comment") => ErrorKind::EofInComment, // Some("eof-in-cdata") => ErrorKind::EofInCdata, // Some("eof-in-tag") => ErrorKind::EofInTag, // Some("eof-before-tag-name") => ErrorKind::EofBeforeTagName, // Some("eof-in-script-html-comment-like-text") => { // ErrorKind::EofInScriptHtmlCommentLikeText } // Some("unknown-named-character-reference") => { // ErrorKind::UnknownNamedCharacterReference // } // Some("incorrectly-opened-comment") => { // ErrorKind::IncorrectlyOpenedComment // } // Some("abrupt-closing-of-empty-comment") => { // ErrorKind::AbruptClosingOfEmptyComment // } // Some("abrupt-doctype-public-identifier") => { // ErrorKind::AbruptDoctypePublicIdentifier // } // Some("abrupt-doctype-system-identifier") => { // ErrorKind::AbruptDoctypeSystemIdentifier // } // // Some("absence-of-digits-in-numeric-character-reference") => { // ErrorKind::AbsenceOfDigitsInNumericCharacterReference // } Some("surrogate-character-reference") => { // ErrorKind::SurrogateCharacterReference // } // Some("nested-comment") => // ErrorKind::NestedComment, // Some("end-tag-with-trailing-solidus") => { // ErrorKind::EndTagWithTrailingSolidus } // Some("null-character-reference") => // ErrorKind::NullCharacterReference, // Some("cdata-in-html-content") => ErrorKind::CdataInHtmlContent, // Some("character-reference-outside-unicode-range") => { // ErrorKind::CharacterReferenceOutsideUnicodeRange // } Some("control-character-in-input-stream") => { // ErrorKind::ControlCharacterInInputStream // } // Some("control-character-reference") => { // ErrorKind::ControlCharacterReference // } // Some("noncharacter-in-input-stream") => { // ErrorKind::NoncharacterInInputStream // } // Some("noncharacter-character-reference") => { // ErrorKind::NoncharacterCharacterReference // } // // Some("unexpected-equals-sign-before-attribute-name") => { // ErrorKind::UnexpectedEqualsSignBeforeAttributeName // } // Some("unexpected-question-mark-instead-of-tag-name") => { // ErrorKind::UnexpectedQuestionMarkInsteadOfTagName // } // Some("unexpected-character-after-doctype-system-identifier") => { // ErrorKind::UnexpectedCharacterAfterDoctypeSystemIdentifier // } Some("unexpected-null-character") => // ErrorKind::UnexpectedNullCharacter, // Some("unexpected-solidus-in-tag") => ErrorKind::UnexpectedSolidusInTag, // Some("unexpected-character-in-attribute-name") => // { // ErrorKind::UnexpectedCharacterInAttributeName } // // Some("unexpected-character-in-unquoted-attribute-value") => { // ErrorKind::UnexpectedCharacterInUnquotedAttributeValue // } Some("duplicate-attribute") => // ErrorKind::DuplicateAttribute, // Some("end-tag-with-attributes") => ErrorKind::EndTagWithAttributes, // Some("missing-whitespace-before-doctype-name") => // { // ErrorKind::MissingWhitespaceBeforeDoctypeName } // Some("missing-attribute-value") => // ErrorKind::MissingAttributeValue, // Some("missing-doctype-public-identifier") => { // ErrorKind::MissingDoctypePublicIdentifier } // Some("missing-end-tag-name") => // ErrorKind::MissingEndTagName, // Some("missing-doctype-name") => ErrorKind::MissingDoctypeName, // Some("missing-doctype-system-identifier") => { // ErrorKind::MissingDoctypeSystemIdentifier } // // Some("missing-whitespace-after-doctype-system-keyword") => { // ErrorKind::MissingWhitespaceAfterDoctypeSystemKeyword // } // Some("missing-whitespace-after-doctype-public-keyword") => { // ErrorKind::MissingWhitespaceAfterDoctypePublicKeyword // } // Some("missing-quote-before-doctype-public-identifier") => { // ErrorKind::MissingQuoteBeforeDoctypePublicIdentifier // } // Some("missing-quote-before-doctype-system-identifier") => { // ErrorKind::MissingQuoteBeforeDoctypeSystemIdentifier // } Some("incorrectly-closed-comment") => { // ErrorKind::IncorrectlyClosedComment // } // // Some("invalid-character-sequence-after-doctype-name") => { // ErrorKind::InvalidCharacterSequenceAfterDoctypeName // } Some( // // "missing-whitespace-between-doctype-public-and-system-identifiers", // ) => { // // ErrorKind::MissingWhitespaceBetweenDoctypePublicAndSystemIdentifiers // } // Some("missing-whitespace-between-attributes") => // { // ErrorKind::MissingWhitespaceBetweenAttributes } // // Some("missing-semicolon-after-character-reference") => { // ErrorKind::MissingSemicolonAfterCharacterReference // } Some("invalid-first-character-of-tag-name") => // { ErrorKind::InvalidFirstCharacterOfTagName // } // _ => { // unreachable!("unknown error {:?}", // expected_code); } // }, // _ => { // unreachable!(); // } // }; // assert!(actual_errors // .iter() // .any(|error| *error.kind() == expected_code)); // } // } else { // let errors = lexer.take_errors(); // assert_eq!(errors.len(), 0); // } // assert_eq!(actual, expected); // } // } // } // enum TestState { // Data, // Document, // DocumentFragment, // Errors, // NewErrors, // } // enum DocumentOrDocumentFragment { // Document(PResult<Document>), // DocumentFragment(PResult<DocumentFragment>), // } // #[testing::fixture("tests/html5lib-tests/tree-construction/**/*.dat")] // #[testing::fixture("tests/html5lib-tests-fixture/**/*.html")] // fn html5lib_test_tree_construction(input: PathBuf) { // if input.extension().unwrap() == "dat" { // let mut tree_construction_base = None; // let mut tests_base = None; // let mut path_buf = input.to_path_buf(); // while path_buf.pop() { // if path_buf.ends_with("tree-construction") { // tree_construction_base = Some(path_buf.clone()); // } // if path_buf.ends_with("tests") { // tests_base = Some(path_buf.clone()); // break; // } // } // let tree_construction_base = tree_construction_base.unwrap(); // let relative_path_to_test = input // .strip_prefix(tree_construction_base) // .expect("failed to get relative filename") // .to_str() // .unwrap() // .replace(['/', '\\', '.'], "_"); // let tests_base = tests_base.unwrap(); // let dir = tests_base.join("html5lib-tests-fixture"); // fs::create_dir_all(dir.clone()).expect("failed to create directory // for fixtures"); // let tests_file = fs::read_to_string(input).expect("Something went // wrong reading the file"); let mut tests = // tests_file.split("#data\n"); // tests.next(); // let mut counter = 0; // while let Some(test) = tests.next() { // let mut data: Vec<&str> = Vec::new(); // let mut document: Vec<&str> = Vec::new(); // let mut document_fragment: Vec<&str> = Vec::new(); // let mut errors: Vec<&str> = Vec::new(); // let mut new_errors: Vec<&str> = Vec::new(); // let mut scripting_enabled = false; // let mut state = Some(TestState::Data); // let lines = test.lines(); // for line in lines { // match line { // "#data" => { // state = Some(TestState::Data); // continue; // } // "#errors" => { // state = Some(TestState::Errors); // continue; // } // "#new-errors" => { // state = Some(TestState::NewErrors); // continue; // } // "#document" => { // state = Some(TestState::Document); // continue; // } // "#document-fragment" => { // state = Some(TestState::DocumentFragment); // continue; // } // "#script-on" => { // scripting_enabled = true; // state = None; // continue; // } // "#script-off" => { // scripting_enabled = false; // state = None; // continue; // } // _ => {} // } // match &state { // Some(TestState::Data) => { // data.push(line); // } // Some(TestState::Document) => { // document.push(line); // } // Some(TestState::DocumentFragment) => { // document_fragment.push(line); // } // Some(TestState::Errors) => { // errors.push(line); // } // Some(TestState::NewErrors) => { // new_errors.push(line); // } // _ => { // unreachable!(); // } // } // } // let mut file_stem = relative_path_to_test.to_string(); // file_stem.push('.'); // file_stem.push_str(&counter.to_string()); // // TODO workaround, fix - https://github.com/html5lib/html5lib-tests/pull/151 // let need_skip_fragment = // relative_path_to_test.contains("template_dat") && // matches!(counter, 109..=111); // if !need_skip_fragment && !document_fragment.is_empty() { // file_stem += ".fragment_"; // file_stem += &document_fragment.join("").replace(' ', "_"); // } // if scripting_enabled { // file_stem += ".script_on"; // } // let mut html_path = dir.clone(); // html_path.push(file_stem.clone() + ".html"); // fs::write(html_path, data.join("\n")) // .expect("Something went wrong when writing to the file // {:?}"); // let mut dom_snapshot_path = dir.clone(); // dom_snapshot_path.push(file_stem.clone() + ".dom.rust-debug"); // let mut dom = document.join("\n"); // if !dom.ends_with('\n') { // dom.push('\n'); // } // fs::write(dom_snapshot_path, dom) // .expect("Something went wrong when writing to the file"); // let errors = errors.join("\n"); // let mut errors_snapshot_path = dir.clone(); // errors_snapshot_path.push(file_stem.clone() + ".output.stderr"); // fs::write(errors_snapshot_path, errors) // .expect("Something went wrong when writing to the file"); // counter += 1; // } // return; // } // testing::run_test2(false, |cm, handler| { // // Type annotation // if false { // return Ok(()); // } // let fm = cm.load_file(&input).unwrap(); // let file_name = input.file_name().unwrap().to_string_lossy(); // let scripting_enabled = file_name.contains("script_on"); // let lexer = Lexer::new(SourceFileInput::from(&*fm)); // let config = ParserConfig { // scripting_enabled, // iframe_srcdoc: false, // allow_self_closing: false, // }; // let mut parser = Parser::new(lexer, config); // let document_or_document_fragment = if file_name.contains("fragment") // { let mut context_element_namespace = Namespace::HTML; // let mut context_element_tag_name = "unknown"; // let mut splitted = file_name.split('.'); // let index = splitted.clone().count() - 2; // let context_element = splitted // .nth(index) // .expect("failed to get context element from filename") // .replace("fragment_", ""); // if context_element.contains('_') { // let mut splited = context_element.split('_'); // if let Some(namespace) = splited.next() { // context_element_namespace = match namespace { // "math" => Namespace::MATHML, // "svg" => Namespace::SVG, // _ => { // unreachable!(); // } // }; // } // if let Some(tag_name) = splited.next() { // context_element_tag_name = tag_name; // } // } else { // context_element_tag_name = &context_element; // } // let context_element = Element { // span: Default::default(), // namespace: context_element_namespace, // tag_name: context_element_tag_name.into(), // attributes: Vec::new(), // is_self_closing: false, // children: Vec::new(), // content: None, // }; // // DocumentOrDocumentFragment::DocumentFragment(parser.parse_document_fragment( // context_element, // DocumentMode::NoQuirks, // None, // )) // } else { // DocumentOrDocumentFragment::Document(parser.parse_document()) // }; // // `scripted` for browser tests with JS // // `search` proposed, but not merged in spec // let need_skip_tests = file_name.contains("scripted") || // file_name.contains("search"); // if !need_skip_tests { // let errors = parser.take_errors(); // let errors_path = input.with_extension("output.stderr"); // let contents = // fs::read_to_string(errors_path).expect("Something went wrong // reading the file"); // // TODO bug in tests - https://github.com/html5lib/html5lib-tests/issues/138 // let actual_number_of_errors = if // file_name.contains("tests19_dat.84") { errors.len() + 1 // } else if file_name.contains("math_dat.5.fragment_tbody") // || file_name.contains("math_dat.6.fragment_tbody") // || file_name.contains("math_dat.7.fragment_tbody") // || file_name.contains("svg_dat.5.fragment_tbody") // || file_name.contains("svg_dat.6.fragment_tbody") // || file_name.contains("svg_dat.7.fragment_tbody") // || file_name.contains("foreign-fragment_dat.3.fragment_svg_path") // { // errors.len() - 1 // } else { // errors.len() // }; // let expected_number_of_errors = contents.lines().count(); // assert_eq!(actual_number_of_errors, expected_number_of_errors); // } // let json_path = input.with_extension("output.json"); // match document_or_document_fragment { // DocumentOrDocumentFragment::Document(Ok(mut document)) => { // let actual_json = serde_json::to_string_pretty(&document) // .map(NormalizedOutput::from) // .expect("failed to serialize document"); // actual_json.compare_to_file(&json_path).unwrap(); // if file_name.contains("scripted") || // file_name.contains("search") { return Ok(()); // } // let mut dom_buf = String::new(); // document.visit_mut_with(&mut DomVisualizer { // dom_buf: &mut dom_buf, // indent: 0, // }); // NormalizedOutput::from(dom_buf) // .compare_to_file(input.with_extension("dom.rust-debug")) // .unwrap(); // Ok(()) // } // DocumentOrDocumentFragment::DocumentFragment(Ok(mut // document_fragment)) => { let actual_json = // serde_json::to_string_pretty(&document_fragment) // .map(NormalizedOutput::from) .expect("failed to serialize // document"); // actual_json.compare_to_file(&json_path).unwrap(); // if need_skip_tests { // return Ok(()); // } // let mut dom_buf = String::new(); // document_fragment.visit_mut_with(&mut DomVisualizer { // dom_buf: &mut dom_buf, // indent: 0, // }); // NormalizedOutput::from(dom_buf) // .compare_to_file(input.with_extension("dom.rust-debug")) // .unwrap(); // Ok(()) // } // DocumentOrDocumentFragment::Document(Err(err)) // | DocumentOrDocumentFragment::DocumentFragment(Err(err)) => { // let mut d = err.to_diagnostics(&handler); // d.note(&format!("current token = {}", parser.dump_cur())); // d.emit(); // panic!(); // } // } // }) // .unwrap(); // }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/iframe_srcdoc.rs
Rust
use std::path::PathBuf; use common::{document_dom_visualizer, document_span_visualizer}; use swc_html_parser::parser::ParserConfig; use crate::common::document_test; #[path = "common/mod.rs"] mod common; #[testing::fixture("tests/iframe_srcdoc/**/*.html")] fn pass_iframe_srcdoc(input: PathBuf) { document_test( input, ParserConfig { iframe_srcdoc: true, ..Default::default() }, ) } #[testing::fixture("tests/iframe_srcdoc/**/*.html")] fn span_visualizer(input: PathBuf) { document_span_visualizer(input, Default::default(), false) } #[testing::fixture("tests/iframe_srcdoc/**/*.html")] fn dom_visualizer(input: PathBuf) { document_dom_visualizer(input, Default::default()) }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/iframe_srcdoc/basic/input.html
HTML
<html> <body> <p>Test.</p>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/iframe_srcdoc/template/input.html
HTML
<template>Test <span>Test</span></template>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery.rs
Rust
use std::path::PathBuf; use common::{document_dom_visualizer, document_span_visualizer}; use swc_common::input::SourceFileInput; use swc_html_ast::Document; use swc_html_parser::{ lexer::Lexer, parser::{PResult, Parser, ParserConfig}, }; use testing::NormalizedOutput; #[path = "common/mod.rs"] mod common; fn document_recovery_test(input: PathBuf, config: ParserConfig) { let stderr_path = input.parent().unwrap().join("output.stderr"); let mut recovered = false; let stderr = testing::run_test2(false, |cm, handler| { // Type annotation if false { return Ok(()); } let json_path = input.parent().unwrap().join("output.json"); let fm = cm.load_file(&input).unwrap(); let lexer = Lexer::new(SourceFileInput::from(&*fm)); let mut parser = Parser::new(lexer, config); let document: PResult<Document> = parser.parse_document(); let errors = parser.take_errors(); for err in &errors { err.to_diagnostics(&handler).emit(); } if !errors.is_empty() { recovered = true; } match document { Ok(document) => { let actual_json = serde_json::to_string_pretty(&document) .map(NormalizedOutput::from) .expect("failed to serialize document"); actual_json.compare_to_file(json_path).unwrap(); Err(()) } Err(err) => { let mut d = err.to_diagnostics(&handler); d.note(&format!("current token = {}", parser.dump_cur())); d.emit(); Err(()) } } }) .unwrap_err(); if !recovered { panic!( "Parser should emit errors (recover mode), but parser parsed everything successfully \ {}", stderr ); } stderr.compare_to_file(stderr_path).unwrap(); } #[testing::fixture("tests/recovery/**/*.html")] fn recovery(input: PathBuf) { document_recovery_test(input, Default::default()) } #[testing::fixture("tests/recovery/**/*.html")] fn span_visualizer(input: PathBuf) { document_span_visualizer(input, Default::default(), false) } #[testing::fixture("tests/recovery/**/*.html")] fn dom_visualizer(input: PathBuf) { document_dom_visualizer(input, Default::default()) }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/attribute/bogus-1/input.html
HTML
<img src="data:image/png,%89PNG%0D%0A%1A%0A%00%00%00%0DIHDR%00%00%01%B2%00%00%01%07%04%03%00%00%01N%5D%EE%7F%00%00%00%04gAMA%00%00%AF%C87%05%8A%E9%00%00%00%1BPLTE%F8%FC%F8%00%00%00%F8%E8%B8%00%FC%F8%F8%00%00%00%FC%00%F8%90%40%00%00%F8%F8%00%F8d%FA%E4%E4%00%00%00%07tIME%07%CF%0B%01%07%1E%01E%0FIy%00%00%00%15tEXtSoftware%00XPaint%202.4.9P%0E%BDz%00%00%10%AFIDATx%9C%ED%5DKs%E3%B8%11f%AB%A6%A6rlH%8Aj%8E%B2f%B6r%5D%8D%92%BB%9Dh%EF%BB%D9%F2%DDs%F19%95_%B0%B9%ED%CF%0E%F1~%10%20%1B%20%40S%2Auy%3C%B2%40%E0%C3%87G%A3%D1x%B0%EB%1A%09v%80%FD%AF9%02c%D1%FB0%18%8B%AB%9E%F1c%E8%7F%882%E8t%3Ay%C1n%E4%EE%EB%E5%BB%0Er%13%92%9F%9Fv%DF%9Dg%99%0F%FE%ED%97%7F%A7sm%93%8D%08c%2C%1D8K%BC%B2%D8%06%81nI%C2h%60X%25%5E%E0%15G%02_%9E%C7b%06%81%1D5%B0%7B~%19%09%3Cv%EFo%C9%40%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%C9E%DC%F3%E8%F5%B3%B5%DA%BFi%09NqX%02%01%B3%F5%DB%8B%03%01%A7%DD%057q%B9%03%DA%873%B3%D3%A7%9CX%8AW%E0%D0%16%03%80%AE%C4%0Fg%E6%89%E2%E7e9%F6P%B4%0F%D9%AFEi%AD%8BYJV%3E%29~%C8C%1E%B2%A8%FC%1F%80U%F1%8F%E3%25%60p%00%00%00%00IEND%AEB%60%82" alt="the image" longdesc="data:text/html;charset=utf-8,%3C%21DOCTYPE%20html%3E%0D%0A%3Chtml%3E%0D%0A%20%3Chead%3E%0D%0A%20%20%3Ctitle%3ELongdesc%20test%20Pass%20page%3C%2Ftitle%3E%0D%0A%20%3C%2Fhead%3E%0D%0A%20%3Cbody%3E%0D%0A%20%20%3Ch1%3EPass%3C%2Fh1%3E%0D%0A%20%3C%2Fbody%3E%0D%0A%3C%2Fhtml%3E">
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/attribute/bogus-2/input.html
HTML
<h a=&not=>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/attribute/bogus/input.html
HTML
<div test="test'></div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/attribute/duplicate/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <div class="test" class="test-1" class="test-2"></div> <div></div class="test" class="test-1" class="test-2"> </div/> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/attribute/missing-value/input.html
HTML
<div>test</div> <a a=> <div>test</div> <z ====>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/comment/bogus-1/input.html
HTML
<!-- test
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/comment/bogus-2/input.html
HTML
<!-- test>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/comment/bogus-3/input.html
HTML
FOO<!-->BAZ
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/comment/bogus-4/input.html
HTML
FOO<!-->BAZ
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/comment/bogus-5/input.html
HTML
<!-->
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/comment/bogus-6/input.html
HTML
<!--->
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/comment/bogus-7/input.html
HTML
<!doctype html> <! -->
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/comment/bogus-8/input.html
HTML
FOO<!-- BAR --!-test
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/comment/bogus/input.html
HTML
<!–– Failing New York Times Comment -->
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/comment/cdata-1/input.html
HTML
<![CDATA[ Within this Character Data block I can use double dashes as much as I want (along with <, &, ', and ") *and* %MyParamEntity; will be expanded to the text "Has been expanded" ... however, I can't use the CEND sequence. If I need to use CEND I must escape one of the brackets or the greater-than sign using concatenated CDATA sections. ]]> <div>test</div> <![cdata[ Within this Character Data block I can use double dashes as much as I want (along with <, &, ', and ") *and* %MyParamEntity; will be expanded to the text "Has been expanded" ... however, I can't use the CEND sequence. If I need to use CEND I must escape one of the brackets or the greater-than sign using concatenated CDATA sections. ]]>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/comment/cdata-2/input.html
HTML
<div><![CDATA[foo]]>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/comment/cdata/input.html
HTML
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>XHTML 1.0 Strict Example</title> <script type="application/javascript"> <![CDATA[ function loadpdf() { document.getElementById("pdf-object").src="http://www.w3.org/TR/xhtml1/xhtml1.pdf"; } ]]> </script> </head> <body onload="loadpdf()"> <p>This is an example of an <abbr title="Extensible HyperText Markup Language">XHTML</abbr> 1.0 Strict document.<br /> <img id="validation-icon" src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Strict"/><br /> <object id="pdf-object" type="application/pdf" data="http://www.w3.org/TR/xhtml1/xhtml1.pdf" width="100%" height="500"></object> </p> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/comment/inside-textarea/input.html
HTML
<textarea><!--</textarea>--></textarea>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/comment/question-mark/input.html
HTML
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <div> <?test> <div ="test"></div> </div> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/doctype/eof/input.html
HTML
<!DOCTYPE
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/doctype/newline/input.html
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/doctype/no-doctype-name-line/input.html
HTML
<!DOCTYPE >
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/doctype/no-doctype-name-space/input.html
HTML
<!DOCTYPE >
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/document_type/bogus/input.html
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" SYSTEM "http://www.w3.org/TR/html4/strict.dtd">
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/document_type/missing-name/input.html
HTML
<!DOCTYPE> <html> <body> <a href=https://www.w3schools.com>This is a link</a> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/document_type/no-space-before-name/input.html
HTML
<!doctypehtml> <body> <p>This is a paragraph.</p> <p>This is another paragraph.</p> <div>test</div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/document_type/public/input.html
HTML
<!DOCTYPE HTML public "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/document_type/unknown-name/input.html
HTML
<!DOCTYPE potato>Hello
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/document_type/unknown/input.html
HTML
<!DOCTYPE >Hello
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/document_type/wrong-name/input.html
HTML
<!DOCTYPE html broken> <html> <body> <a href=https://www.w3schools.com>This is a link</a> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/a-1/input.html
HTML
<a>1<p>2</a>3</p>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/a-2/input.html
HTML
<a>1<button>2</a>3</button>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/a-3/input.html
HTML
<a>1<div>2<div>3</a>4</div>5</div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/a-4/input.html
HTML
<table><a>1<p>2</a>3</p>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/a/input.html
HTML
<a><p></a></p>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/applet-2/input.html
HTML
<a><applet><a>x
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/applet/input.html
HTML
<b><applet></b>x
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/b-1/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <p>1<b>2<i>3</b>4</i>5</p> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/b-2/input.html
HTML
<b><p>Bold </b> Not bold</p> Also not bold.
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/b-3/input.html
HTML
<b><a><b><p></a>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/b/input.html
HTML
<b>1<p>2</b>3</p>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/body-1/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <ul> <li> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/body-2/input.html
HTML
<!DOCTYPE html>X</body>A
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/body-3/input.html
HTML
<!DOCTYPE html>X</body><div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/body-4/input.html
HTML
<!DOCTYPE html>X</body></div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/body-5/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body/> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/body/broken/input.html
HTML
<!DOCTYPE HTML> <html> <head> <title>Test</title></head> <body> <html test="test"> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/br/self-closing/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> test</br>test test</br/>test </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/broken-end-tags/input.html
HTML
<div></div> <div><div></div></div> <div></div><div></div> <br> <br /> <h:ællæ></h:ællæ> <div ⚡></div> <some-tag-1></some-tag-1><some-tag-2></some-tag-2> <a href="test.html"><div>hey</div></a> <CUSTOM-TAG></CUSTOM-TAG><div>Hello :)</div> <div> test </div> <div></div test="a"> <div data-test="a"></div data-test="a"> <br data-test="a" /> <br data-test="a" > <br data-test="a"> <div > Test </div > <div>test</div foo="bar" /> <div>test</div/>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/colgroup-1/input.html
HTML
<body> <template><col><colgroup></template> <template><col><colgroup></div></template> <template><col><colgroup>A</template> </body>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/colgroup/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <table> <caption>Superheros and sidekicks</caption> <colgroup> </div> <col> <col span="2" class="batman"> <col span="2" class="flash"> </colgroup> </table> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/embed-closed/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <embed type="vide/webm" src="/media/examples/flower.mp4" width="200" height="200"> <noembed> <h1>Alternative content</h1> </noembed> </embed> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/font/input.html
HTML
<p><font size=4><font color=red><font color=red><p>X
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/foreign-context/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> <div><svg></p></svg</div> <div><svg></br></svg</div> <div><svg><b></svg</div> <div><svg><big></svg</div> <div><svg><blockquote></svg</div> <div><svg><br></svg</div> <div><svg><center></svg</div> <div><svg><code></svg</div> <div><svg><dd></svg</div> <div><svg><div></svg</div> <div><svg><dl></svg</div> <div><svg><dt></svg</div> <div><svg><em></svg</div> <div><svg><embed></svg</div> <div><svg><h1></svg</div> <div><svg><h2></svg</div> <div><svg><h3></svg</div> <div><svg><h4></svg</div> <div><svg><h5></svg</div> <div><svg><h6></svg</div> <div><svg><hr></svg</div> <div><svg><i></svg</div> <div><svg><img></svg</div> <div><svg><li></svg</div> <div><svg><listing></svg</div> <div><svg><menu></svg</div> <div><svg><meta></svg</div> <div><svg><nobr></svg</div> <div><svg><ol></svg</div> <div><svg><p></svg</div> <div><svg><pre></svg</div> <div><svg><ruby></svg</div> <div><svg><s></svg</div> <div><svg><small></svg</div> <div><svg><span></svg</div> <div><svg><strong></svg</div> <div><svg><strike></svg</div> <div><svg><sub></svg</div> <div><svg><sup></svg</div> <div><svg><table></svg</div> <div><svg><tt></svg</div> <div><svg><u></svg</div> <div><svg><ul></svg</div> <div><svg><var></svg</div> <div><math></p></math</div> <div><math></br></math</div> <div><math><b></math</div> <div><math><big></math</div> <div><math><blockquote></math</div> <div><math><br></math</div> <div><math><center></math</div> <div><math><code></math</div> <div><math><dd></math</div> <div><math><div></math</div> <div><math><dl></math</div> <div><math><dt></math</div> <div><math><em></math</div> <div><math><embed></math</div> <div><math><h1></math</div> <div><math><h2></math</div> <div><math><h3></math</div> <div><math><h4></math</div> <div><math><h5></math</div> <div><math><h6></math</div> <div><math><hr></math</div> <div><math><i></math</div> <div><math><img></math</div> <div><math><li></math</div> <div><math><listing></math</div> <div><math><menu></math</div> <div><math><meta></math</div> <div><math><nobr></math</div> <div><math><ol></math</div> <div><math><p></math</div> <div><math><pre></math</div> <div><math><ruby></math</div> <div><math><s></math</div> <div><math><small></math</div> <div><math><span></math</div> <div><math><strong></math</div> <div><math><strike></math</div> <div><math><sub></math</div> <div><math><sup></math</div> <div><math><table></math</div> <div><math><tt></math</div> <div><math><u></math</div> <div><math><ul></math</div> <div><math><var></math</div> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/form/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <form action="test"> <form action="test"></form> </form> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/frame/input.html
HTML
<frame>test
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/frameset-1/input.html
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Тег FRAMESET</title> </head> <frameset rows="80,*" cols="*"> <frame src="top.html" name="topFrame" scrolling="no" noresize> <frameset cols="80,*"> <frame src="left.html" name="leftFrame" scrolling="no" noresize> <frame src="main.html" name="mainFrame"> </frameset> </frameset> a <div></div> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/frameset-2/input.html
HTML
<!doctype html><html><frameset></frameset></html>abc<div></div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/frameset/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <frameset></frameset> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/h1/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <h1>test<h1>test</h1></h1> <h2>test<h1>test</h1></h2> <h3>test<h1>test</h1></h3> <h4>test<h1>test</h1></h4> <h5>test<h1>test</h1></h5> <h6>test<h1>test</h1></h6> <h1>test<h2>test</h2></h1> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/head-1/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <head> <body> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/head-2/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> </head> <body> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/head-3/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <!doctype html> <body> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/head-4/input.html
HTML
<!doctype html> <html lang="en"> <head/> <body> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/head/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <meta charset="UTF-8"> <body> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/hgroup/input.html
HTML
<!doctype html><p>foo<hgroup>bar<p>baz
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/hr/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <hr> <hr/> <hr /> <hr></hr> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/html-1/input.html
HTML
<!DOCTYPE html>X</html>X</div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/html-2/input.html
HTML
<!doctype html><html lang="en"><head><title>Document</title></head><body>test</body><div>test</div></html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/html-3/input.html
HTML
<html/>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/html/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <ul> <li> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_parser/tests/recovery/element/image-1/input.html
HTML
<!doctype html><image/>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University