diff options
author | jsharda <jsharda@ncsu.edu> | 2015-10-30 16:50:15 -0400 |
---|---|---|
committer | jsharda <jsharda@ncsu.edu> | 2015-11-04 19:18:20 -0500 |
commit | dca4e3730b537746b74adbd6e46327868d533a13 (patch) | |
tree | da5b95c303fc9c8547cdbf837976a3b0d773c73c /components/script/parse | |
parent | 50e0c36eeb8cd52b90dba24b5b3692abc25d8d4d (diff) | |
download | servo-dca4e3730b537746b74adbd6e46327868d533a13.tar.gz servo-dca4e3730b537746b74adbd6e46327868d533a13.zip |
M1503 - Integrate XML parse -Initial Steps
Diffstat (limited to 'components/script/parse')
-rw-r--r-- | components/script/parse/mod.rs | 1 | ||||
-rw-r--r-- | components/script/parse/xml.rs | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/components/script/parse/mod.rs b/components/script/parse/mod.rs index fa93dbc157f..dc09d34853a 100644 --- a/components/script/parse/mod.rs +++ b/components/script/parse/mod.rs @@ -3,6 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ pub mod html; +pub mod xml; pub trait Parser { fn parse_chunk(self, input: String); diff --git a/components/script/parse/xml.rs b/components/script/parse/xml.rs new file mode 100644 index 00000000000..c741fd03306 --- /dev/null +++ b/components/script/parse/xml.rs @@ -0,0 +1,20 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#![allow(unrooted_must_root)] + +use dom::document::Document; +use url::Url; +use util::str::DOMString; + +pub enum ParseContext { + Owner(Option<i32>) +} + + +pub fn parse_xml(document: &Document, + input: DOMString, + url: Url, + context: ParseContext) { +} |