diff options
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) { +} |