Skip to content

Xhtml5ever #268

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 37 commits into from
May 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
a142e0a
Move html5ever into separate folder
Ygg01 Apr 13, 2017
52060c5
Fix html5ever Cargo.toml to correct path
Ygg01 Apr 17, 2017
44d3fc1
Move profiles into workspace
Ygg01 Apr 13, 2017
a8a54c1
Rearrange fields in xml5ever Cargo.toml
Ygg01 Apr 13, 2017
a705bd6
Fix xml5ever tests, to no longer require special flag
Ygg01 Apr 13, 2017
351a38a
Rename atoms to markup5ever
Ygg01 Apr 14, 2017
7028d47
Change xml5ever and html5ever to new markup5ever crate
Ygg01 Apr 14, 2017
3406fc1
Move entities.json into markup5ever
Ygg01 Apr 24, 2017
59d975c
Move SmallCharSet to markup5ever
Ygg01 Apr 24, 2017
efc5d22
Move script into separate folder
Ygg01 Apr 29, 2017
a3e0f64
Minor fixes
Ygg01 Apr 29, 2017
19c89ff
Move interfaces into markup5ever
Ygg01 Apr 29, 2017
df3dd43
Move buffer_queue and smallcharset to markup5ever
Ygg01 Apr 29, 2017
d67ea1c
Fix examples and benches
Ygg01 Apr 29, 2017
eabb085
Fix execution permission
Ygg01 Apr 29, 2017
4013e3c
Fix copyright
Ygg01 Apr 29, 2017
4b5d7f7
Change script to use `cargo [command] --all`
Ygg01 Apr 29, 2017
a8c619c
Fix issues in markup5ever
Ygg01 Apr 29, 2017
e56372c
Enable doctest for x5e and h5e
Ygg01 Apr 29, 2017
261bf36
Removed nits in rcdom and tokenizers
Ygg01 Apr 29, 2017
ca5f956
Replace ad-hoc same_node functions with Rc::ptr_eq
SimonSapin Apr 30, 2017
c0cb24a
Fix warnings
SimonSapin Apr 30, 2017
0651263
`parse` is no more, remove `ParseResult`.
SimonSapin Apr 30, 2017
bd38ddc
Move rcdom to markup5ever
SimonSapin May 1, 2017
2326c29
Add an ExpandedName type without prefix, use it for tag sets
SimonSapin May 1, 2017
a2973e2
rcdom: move cells inwards, requiring borrows for fewer things.
SimonSapin May 1, 2017
cc93e4a
Remove many calls to clone()
SimonSapin May 1, 2017
abaf326
Make TreeSink::elem_name return ExpandedName instead of QualName
SimonSapin May 1, 2017
1bb8eef
Force QualName constructors to specify a namespace prefix.
SimonSapin May 1, 2017
d9822fa
Set namespace prefix on adjusted foreign attributes
SimonSapin May 1, 2017
83dce69
Users of {ht,x}ml5ever don’t need to use markup5ever directly.
SimonSapin May 2, 2017
f05ef2d
Remove unused dependencies
SimonSapin May 2, 2017
25a626c
Avoid importing things directly from markup5ever
SimonSapin May 2, 2017
8bb3f11
Replace is_mathml_annotation_xml_integration_point with attr lookup.
SimonSapin May 2, 2017
d1992f2
Simplify rcdom
SimonSapin May 2, 2017
0a87717
mathml_annotation_xml_integration_point at element creation time
SimonSapin May 2, 2017
50bcef5
Merge pull request #1 from servo/m5e
Ygg01 May 2, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[submodule "html5lib-tests"]
path = html5lib-tests
path = html5ever/html5lib-tests
url = https://github.com/html5lib/html5lib-tests
[submodule "xml5lib-tests"]
path = xml5ever/xml5lib-tests
Expand Down
2 changes: 1 addition & 1 deletion COPYRIGHT
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This project is copyright 2014, The html5ever Project Developers (given in
This project is Copyright 2014-2017 , The html5ever Project Developers (given in
the file AUTHORS).

Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
Expand Down
60 changes: 6 additions & 54 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,57 +1,9 @@
[package]

name = "html5ever"
version = "0.15.0"
authors = [ "The html5ever Project Developers" ]
license = "MIT / Apache-2.0"
repository = "https://github.com/servo/html5ever"
description = "High-performance browser-grade HTML5 parser"
documentation = "https://docs.rs/html5ever"
build = "build.rs"

[lib]
name = "html5ever"

# https://github.com/rust-lang/cargo/issues/1512
doctest = false

[[test]]
name = "tree_builder"
harness = false

[[test]]
name = "tokenizer"
harness = false

[[test]]
name = "serializer"

[[bench]]
name = "tokenizer"
harness = false

[features]
unstable = ["tendril/unstable"]
heap_size = ["heapsize", "heapsize_derive", "html5ever-atoms/heap_size"]

[dependencies]
log = "0"
phf = "0.7"
mac = "0"
tendril = "0.2.2"
heapsize = { version = "0.3", optional = true }
heapsize_derive = { version = "0.1", optional = true }
html5ever-atoms = { version = "0.3", path = "./atoms" }

[dev-dependencies]
rustc-serialize = "0.3.15"
rustc-test = "0.1.3"

[build-dependencies]
phf_codegen = "0.7.3"
quote = "0.3.3"
rustc-serialize = "0.3.15"
syn = { version = "0.11", features = ["full", "visit"] }
[workspace]
members = [
"markup5ever",
"html5ever",
"xml5ever"
]

[profile.dev]
debug = false
Expand Down
81 changes: 0 additions & 81 deletions atoms/lib.rs

This file was deleted.

74 changes: 0 additions & 74 deletions build.rs

This file was deleted.

48 changes: 48 additions & 0 deletions html5ever/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
[package]

name = "html5ever"
version = "0.16.0"
authors = [ "The html5ever Project Developers" ]
license = "MIT / Apache-2.0"
repository = "https://github.com/servo/html5ever"
description = "High-performance browser-grade HTML5 parser"
documentation = "https://docs.rs/html5ever"
build = "build.rs"

[lib]
name = "html5ever"

doctest = true

[[test]]
name = "tree_builder"
harness = false

[[test]]
name = "tokenizer"
harness = false

[[test]]
name = "serializer"

[[bench]]
name = "tokenizer"
harness = false

[features]
unstable = ["tendril/unstable"]
heap_size = ["markup5ever/heap_size"]

[dependencies]
log = "0"
mac = "0"
tendril = "0.2.2"
markup5ever = { version = "0.1", path = "../markup5ever" }

[dev-dependencies]
rustc-serialize = "0.3.15"
rustc-test = "0.1.3"

[build-dependencies]
quote = "0.3.3"
syn = { version = "0.11", features = ["full", "visit"] }
8 changes: 3 additions & 5 deletions benches/tokenizer.rs → html5ever/benches/tokenizer.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2014 The html5ever Project Developers. See the
// Copyright 2014-2017 The html5ever Project Developers. See the
// COPYRIGHT file at the top-level directory of this distribution.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
Expand All @@ -8,7 +8,6 @@
// except according to those terms.

extern crate test;
extern crate tendril;
extern crate html5ever;

use std::{fs, env, cmp};
Expand All @@ -19,9 +18,8 @@ use test::{black_box, Bencher, TestDesc, TestDescAndFn};
use test::{DynTestName, DynBenchFn, TDynBenchFn};
use test::ShouldPanic::No;

use tendril::{ByteTendril, StrTendril, ReadExt, SliceExt};
use html5ever::tokenizer::{TokenSink, Token, Tokenizer, TokenizerOpts, TokenSinkResult};
use html5ever::tokenizer::buffer_queue::BufferQueue;
use html5ever::tokenizer::{BufferQueue, TokenSink, Token, Tokenizer, TokenizerOpts, TokenSinkResult};
use html5ever::tendril::*;

struct Sink;

Expand Down
28 changes: 28 additions & 0 deletions html5ever/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Copyright 2014-2017 The html5ever Project Developers. See the
// COPYRIGHT file at the top-level directory of this distribution.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#[macro_use] extern crate quote;
extern crate syn;

use std::env;
use std::path::Path;

#[path = "macros/match_token.rs"]
mod match_token;

fn main() {
let manifest_dir = env::var("CARGO_MANIFEST_DIR").unwrap();

let rules_rs = Path::new(&manifest_dir).join("src/tree_builder/rules.rs");
match_token::expand_match_tokens(
&rules_rs,
&Path::new(&env::var("OUT_DIR").unwrap()).join("rules.rs"));

println!("cargo:rerun-if-changed={}", rules_rs.display());
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2014 The html5ever Project Developers. See the
// Copyright 2014-2017 The html5ever Project Developers. See the
// COPYRIGHT file at the top-level directory of this distribution.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
Expand Down
2 changes: 1 addition & 1 deletion examples/html2html.rs → html5ever/examples/html2html.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2014 The html5ever Project Developers. See the
// Copyright 2014-2017 The html5ever Project Developers. See the
// COPYRIGHT file at the top-level directory of this distribution.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2014 The html5ever Project Developers. See the
// Copyright 2014-2017 The html5ever Project Developers. See the
// COPYRIGHT file at the top-level directory of this distribution.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
Expand All @@ -10,15 +10,12 @@
// Run a single benchmark once. For use with profiling tools.

extern crate html5ever;
extern crate tendril;

use std::io;
use std::default::Default;

use tendril::{ByteTendril, ReadExt};

use html5ever::tokenizer::{TokenSinkResult, TokenSink, Token, Tokenizer};
use html5ever::tokenizer::buffer_queue::BufferQueue;
use html5ever::tokenizer::{BufferQueue, TokenSinkResult, TokenSink, Token, Tokenizer};
use html5ever::tendril::*;

struct Sink(Vec<Token>);

Expand Down
Loading