зеркало из https://github.com/mozilla/gecko-dev.git
servo: Merge #2311 - Replace all ~"" with "".to_owned() (from Ms2ger:empty-owned); r=jdm
Source-Repo: https://github.com/servo/servo Source-Revision: 660f7a016ee75a418afda9e92d45b79eff6ba540
This commit is contained in:
Родитель
0c3a130356
Коммит
dc0ab9de13
|
@ -635,7 +635,7 @@ impl DisplayItem {
|
|||
}
|
||||
|
||||
pub fn debug_with_level(&self, level: uint) {
|
||||
let mut indent = ~"";
|
||||
let mut indent = "".to_owned();
|
||||
for _ in range(0, level) {
|
||||
indent.push_str("| ")
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ pub enum CompressionMode {
|
|||
//
|
||||
// * Untracked: various edge cases for bidi, CJK, etc.
|
||||
pub fn transform_text(text: &str, mode: CompressionMode, incoming_whitespace: bool, new_line_pos: &mut ~[uint]) -> (~str, bool) {
|
||||
let mut out_str: ~str = ~"";
|
||||
let mut out_str: ~str = "".to_owned();
|
||||
let out_whitespace = match mode {
|
||||
CompressNone | DiscardNewline => {
|
||||
let mut new_line_index = 0;
|
||||
|
|
|
@ -913,7 +913,7 @@ impl<'a> ImmutableFlowUtils for &'a Flow {
|
|||
|
||||
/// Dumps the flow tree for debugging, with a prefix to indicate that we're at the given level.
|
||||
fn dump_with_level(self, level: uint) {
|
||||
let mut indent = ~"";
|
||||
let mut indent = "".to_owned();
|
||||
for _ in range(0, level) {
|
||||
indent.push_str("| ")
|
||||
}
|
||||
|
|
|
@ -86,7 +86,7 @@ impl Flow for TableColGroupFlow {
|
|||
let txt = ~"TableColGroupFlow: ";
|
||||
txt.append(match self.box_ {
|
||||
Some(ref rb) => rb.debug_str(),
|
||||
None => ~"",
|
||||
None => "".to_owned(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -210,7 +210,7 @@ impl TextRunScanner {
|
|||
|
||||
// Next, concatenate all of the transformed strings together, saving the new
|
||||
// character indices.
|
||||
let mut run_str: ~str = ~"";
|
||||
let mut run_str: ~str = "".to_owned();
|
||||
let mut new_ranges: ~[Range] = ~[];
|
||||
let mut char_total = 0;
|
||||
for i in range(0, transformed_strs.len()) {
|
||||
|
|
|
@ -393,10 +393,10 @@ fn get_content(content_list: &content::T) -> ~str {
|
|||
let iter = &mut value.clone().move_iter().peekable();
|
||||
match iter.next() {
|
||||
Some(content::StringContent(content)) => content,
|
||||
_ => ~"",
|
||||
_ => "".to_owned(),
|
||||
}
|
||||
}
|
||||
_ => ~"",
|
||||
_ => "".to_owned(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -192,7 +192,7 @@ fn run(opts: opts::Opts) {
|
|||
let url = if filename.starts_with("data:") {
|
||||
// As a hack for easier command-line testing,
|
||||
// assume that data URLs are not URL-encoded.
|
||||
Url::new(~"data", None, ~"", None,
|
||||
Url::new(~"data", None, "".to_owned(), None,
|
||||
filename.slice_from(5).to_owned(), Vec::new(), None)
|
||||
} else {
|
||||
parse_url(*filename, None)
|
||||
|
|
|
@ -243,7 +243,7 @@ impl Default for StringificationBehavior {
|
|||
impl FromJSValConvertible<StringificationBehavior> for DOMString {
|
||||
fn from_jsval(cx: *JSContext, value: JSVal, nullBehavior: StringificationBehavior) -> Result<DOMString, ()> {
|
||||
if nullBehavior == Empty && value.is_null() {
|
||||
Ok(~"")
|
||||
Ok("".to_owned())
|
||||
} else {
|
||||
let jsstr = unsafe { JS_ValueToString(cx, value) };
|
||||
if jsstr.is_null() {
|
||||
|
|
|
@ -47,7 +47,7 @@ impl<'a> BlobMethods for JSRef<'a, Blob> {
|
|||
}
|
||||
|
||||
fn Type(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn Slice(&self, _start: Option<i64>, _end: Option<i64>, _contentType: Option<DOMString>) -> Temporary<Blob> {
|
||||
|
|
|
@ -78,7 +78,7 @@ impl<'a> CharacterDataMethods for JSRef<'a, CharacterData> {
|
|||
}
|
||||
|
||||
fn DeleteData(&mut self, offset: u32, count: u32) -> ErrorResult {
|
||||
self.ReplaceData(offset, count, ~"")
|
||||
self.ReplaceData(offset, count, "".to_owned())
|
||||
}
|
||||
|
||||
fn ReplaceData(&mut self, offset: u32, count: u32, arg: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -544,7 +544,7 @@ impl<'a> DocumentMethods for JSRef<'a, Document> {
|
|||
|
||||
// http://www.whatwg.org/specs/web-apps/current-work/#document.title
|
||||
fn Title(&self) -> DOMString {
|
||||
let mut title = ~"";
|
||||
let mut title = "".to_owned();
|
||||
self.GetDocumentElement().root().map(|root| {
|
||||
let root: &JSRef<Node> = NodeCast::from_ref(&*root);
|
||||
root.traverse_preorder()
|
||||
|
|
|
@ -37,8 +37,8 @@ impl DocumentType {
|
|||
DocumentType {
|
||||
node: Node::new_inherited(DoctypeNodeTypeId, document),
|
||||
name: name,
|
||||
public_id: public_id.unwrap_or(~""),
|
||||
system_id: system_id.unwrap_or(~"")
|
||||
public_id: public_id.unwrap_or("".to_owned()),
|
||||
system_id: system_id.unwrap_or("".to_owned())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -350,7 +350,7 @@ impl<'a> AttributeHandlers for JSRef<'a, Element> {
|
|||
let x = x.root();
|
||||
x.deref().Value()
|
||||
}
|
||||
None => ~""
|
||||
None => "".to_owned()
|
||||
}
|
||||
}
|
||||
fn set_string_attribute(&mut self, name: &str, value: DOMString) {
|
||||
|
|
|
@ -67,7 +67,7 @@ impl Event {
|
|||
current_target: None,
|
||||
target: None,
|
||||
phase: PhaseNone,
|
||||
type_: ~"",
|
||||
type_: "".to_owned(),
|
||||
canceled: false,
|
||||
cancelable: true,
|
||||
bubbles: false,
|
||||
|
|
|
@ -71,7 +71,7 @@ pub trait HTMLAnchorElementMethods {
|
|||
|
||||
impl<'a> HTMLAnchorElementMethods for JSRef<'a, HTMLAnchorElement> {
|
||||
fn Href(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetHref(&mut self, _href: DOMString) -> ErrorResult {
|
||||
|
@ -79,7 +79,7 @@ impl<'a> HTMLAnchorElementMethods for JSRef<'a, HTMLAnchorElement> {
|
|||
}
|
||||
|
||||
fn Target(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetTarget(&self, _target: DOMString) -> ErrorResult {
|
||||
|
@ -87,7 +87,7 @@ impl<'a> HTMLAnchorElementMethods for JSRef<'a, HTMLAnchorElement> {
|
|||
}
|
||||
|
||||
fn Download(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetDownload(&self, _download: DOMString) -> ErrorResult {
|
||||
|
@ -95,7 +95,7 @@ impl<'a> HTMLAnchorElementMethods for JSRef<'a, HTMLAnchorElement> {
|
|||
}
|
||||
|
||||
fn Ping(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetPing(&self, _ping: DOMString) -> ErrorResult {
|
||||
|
@ -103,7 +103,7 @@ impl<'a> HTMLAnchorElementMethods for JSRef<'a, HTMLAnchorElement> {
|
|||
}
|
||||
|
||||
fn Rel(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetRel(&self, _rel: DOMString) -> ErrorResult {
|
||||
|
@ -111,7 +111,7 @@ impl<'a> HTMLAnchorElementMethods for JSRef<'a, HTMLAnchorElement> {
|
|||
}
|
||||
|
||||
fn Hreflang(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetHreflang(&self, _href_lang: DOMString) -> ErrorResult {
|
||||
|
@ -119,7 +119,7 @@ impl<'a> HTMLAnchorElementMethods for JSRef<'a, HTMLAnchorElement> {
|
|||
}
|
||||
|
||||
fn Type(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetType(&mut self, _type: DOMString) -> ErrorResult {
|
||||
|
@ -127,7 +127,7 @@ impl<'a> HTMLAnchorElementMethods for JSRef<'a, HTMLAnchorElement> {
|
|||
}
|
||||
|
||||
fn Text(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetText(&mut self, _text: DOMString) -> ErrorResult {
|
||||
|
@ -135,7 +135,7 @@ impl<'a> HTMLAnchorElementMethods for JSRef<'a, HTMLAnchorElement> {
|
|||
}
|
||||
|
||||
fn Coords(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetCoords(&mut self, _coords: DOMString) -> ErrorResult {
|
||||
|
@ -143,7 +143,7 @@ impl<'a> HTMLAnchorElementMethods for JSRef<'a, HTMLAnchorElement> {
|
|||
}
|
||||
|
||||
fn Charset(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetCharset(&mut self, _charset: DOMString) -> ErrorResult {
|
||||
|
@ -151,7 +151,7 @@ impl<'a> HTMLAnchorElementMethods for JSRef<'a, HTMLAnchorElement> {
|
|||
}
|
||||
|
||||
fn Name(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetName(&mut self, _name: DOMString) -> ErrorResult {
|
||||
|
@ -159,7 +159,7 @@ impl<'a> HTMLAnchorElementMethods for JSRef<'a, HTMLAnchorElement> {
|
|||
}
|
||||
|
||||
fn Rev(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetRev(&mut self, _rev: DOMString) -> ErrorResult {
|
||||
|
@ -167,7 +167,7 @@ impl<'a> HTMLAnchorElementMethods for JSRef<'a, HTMLAnchorElement> {
|
|||
}
|
||||
|
||||
fn Shape(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetShape(&mut self, _shape: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -67,7 +67,7 @@ pub trait HTMLAppletElementMethods {
|
|||
|
||||
impl<'a> HTMLAppletElementMethods for JSRef<'a, HTMLAppletElement> {
|
||||
fn Align(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAlign(&mut self, _align: DOMString) -> ErrorResult {
|
||||
|
@ -75,7 +75,7 @@ impl<'a> HTMLAppletElementMethods for JSRef<'a, HTMLAppletElement> {
|
|||
}
|
||||
|
||||
fn Alt(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAlt(&self, _alt: DOMString) -> ErrorResult {
|
||||
|
@ -83,7 +83,7 @@ impl<'a> HTMLAppletElementMethods for JSRef<'a, HTMLAppletElement> {
|
|||
}
|
||||
|
||||
fn Archive(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetArchive(&self, _archive: DOMString) -> ErrorResult {
|
||||
|
@ -91,7 +91,7 @@ impl<'a> HTMLAppletElementMethods for JSRef<'a, HTMLAppletElement> {
|
|||
}
|
||||
|
||||
fn Code(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetCode(&self, _code: DOMString) -> ErrorResult {
|
||||
|
@ -99,7 +99,7 @@ impl<'a> HTMLAppletElementMethods for JSRef<'a, HTMLAppletElement> {
|
|||
}
|
||||
|
||||
fn CodeBase(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetCodeBase(&self, _code_base: DOMString) -> ErrorResult {
|
||||
|
@ -107,7 +107,7 @@ impl<'a> HTMLAppletElementMethods for JSRef<'a, HTMLAppletElement> {
|
|||
}
|
||||
|
||||
fn Height(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetHeight(&self, _height: DOMString) -> ErrorResult {
|
||||
|
@ -123,7 +123,7 @@ impl<'a> HTMLAppletElementMethods for JSRef<'a, HTMLAppletElement> {
|
|||
}
|
||||
|
||||
fn Name(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetName(&mut self, _name: DOMString) -> ErrorResult {
|
||||
|
@ -131,7 +131,7 @@ impl<'a> HTMLAppletElementMethods for JSRef<'a, HTMLAppletElement> {
|
|||
}
|
||||
|
||||
fn Object(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetObject(&mut self, _object: DOMString) -> ErrorResult {
|
||||
|
@ -147,7 +147,7 @@ impl<'a> HTMLAppletElementMethods for JSRef<'a, HTMLAppletElement> {
|
|||
}
|
||||
|
||||
fn Width(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetWidth(&mut self, _width: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -61,7 +61,7 @@ pub trait HTMLAreaElementMethods {
|
|||
|
||||
impl<'a> HTMLAreaElementMethods for JSRef<'a, HTMLAreaElement> {
|
||||
fn Alt(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAlt(&self, _alt: DOMString) -> ErrorResult {
|
||||
|
@ -69,7 +69,7 @@ impl<'a> HTMLAreaElementMethods for JSRef<'a, HTMLAreaElement> {
|
|||
}
|
||||
|
||||
fn Coords(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetCoords(&self, _coords: DOMString) -> ErrorResult {
|
||||
|
@ -77,7 +77,7 @@ impl<'a> HTMLAreaElementMethods for JSRef<'a, HTMLAreaElement> {
|
|||
}
|
||||
|
||||
fn Shape(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetShape(&self, _shape: DOMString) -> ErrorResult {
|
||||
|
@ -85,7 +85,7 @@ impl<'a> HTMLAreaElementMethods for JSRef<'a, HTMLAreaElement> {
|
|||
}
|
||||
|
||||
fn Href(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetHref(&self, _href: DOMString) -> ErrorResult {
|
||||
|
@ -93,7 +93,7 @@ impl<'a> HTMLAreaElementMethods for JSRef<'a, HTMLAreaElement> {
|
|||
}
|
||||
|
||||
fn Target(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetTarget(&self, _target: DOMString) -> ErrorResult {
|
||||
|
@ -101,7 +101,7 @@ impl<'a> HTMLAreaElementMethods for JSRef<'a, HTMLAreaElement> {
|
|||
}
|
||||
|
||||
fn Download(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetDownload(&self, _download: DOMString) -> ErrorResult {
|
||||
|
@ -109,7 +109,7 @@ impl<'a> HTMLAreaElementMethods for JSRef<'a, HTMLAreaElement> {
|
|||
}
|
||||
|
||||
fn Ping(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetPing(&self, _ping: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -49,7 +49,7 @@ pub trait HTMLBaseElementMethods {
|
|||
|
||||
impl<'a> HTMLBaseElementMethods for JSRef<'a, HTMLBaseElement> {
|
||||
fn Href(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetHref(&self, _href: DOMString) -> ErrorResult {
|
||||
|
@ -57,7 +57,7 @@ impl<'a> HTMLBaseElementMethods for JSRef<'a, HTMLBaseElement> {
|
|||
}
|
||||
|
||||
fn Target(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetTarget(&self, _target: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -57,7 +57,7 @@ pub trait HTMLBodyElementMethods {
|
|||
|
||||
impl<'a> HTMLBodyElementMethods for JSRef<'a, HTMLBodyElement> {
|
||||
fn Text(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetText(&mut self, _text: DOMString) -> ErrorResult {
|
||||
|
@ -65,7 +65,7 @@ impl<'a> HTMLBodyElementMethods for JSRef<'a, HTMLBodyElement> {
|
|||
}
|
||||
|
||||
fn Link(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetLink(&self, _link: DOMString) -> ErrorResult {
|
||||
|
@ -73,7 +73,7 @@ impl<'a> HTMLBodyElementMethods for JSRef<'a, HTMLBodyElement> {
|
|||
}
|
||||
|
||||
fn VLink(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetVLink(&self, _v_link: DOMString) -> ErrorResult {
|
||||
|
@ -81,7 +81,7 @@ impl<'a> HTMLBodyElementMethods for JSRef<'a, HTMLBodyElement> {
|
|||
}
|
||||
|
||||
fn ALink(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetALink(&self, _a_link: DOMString) -> ErrorResult {
|
||||
|
@ -89,7 +89,7 @@ impl<'a> HTMLBodyElementMethods for JSRef<'a, HTMLBodyElement> {
|
|||
}
|
||||
|
||||
fn BgColor(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetBgColor(&self, _bg_color: DOMString) -> ErrorResult {
|
||||
|
@ -97,7 +97,7 @@ impl<'a> HTMLBodyElementMethods for JSRef<'a, HTMLBodyElement> {
|
|||
}
|
||||
|
||||
fn Background(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetBackground(&self, _background: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -47,7 +47,7 @@ pub trait HTMLBRElementMethods {
|
|||
|
||||
impl<'a> HTMLBRElementMethods for JSRef<'a, HTMLBRElement> {
|
||||
fn Clear(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetClear(&mut self, _text: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -95,7 +95,7 @@ impl<'a> HTMLButtonElementMethods for JSRef<'a, HTMLButtonElement> {
|
|||
}
|
||||
|
||||
fn FormAction(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetFormAction(&mut self, _formaction: DOMString) -> ErrorResult {
|
||||
|
@ -103,7 +103,7 @@ impl<'a> HTMLButtonElementMethods for JSRef<'a, HTMLButtonElement> {
|
|||
}
|
||||
|
||||
fn FormEnctype(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetFormEnctype(&mut self, _formenctype: DOMString) -> ErrorResult {
|
||||
|
@ -111,7 +111,7 @@ impl<'a> HTMLButtonElementMethods for JSRef<'a, HTMLButtonElement> {
|
|||
}
|
||||
|
||||
fn FormMethod(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetFormMethod(&mut self, _formmethod: DOMString) -> ErrorResult {
|
||||
|
@ -127,7 +127,7 @@ impl<'a> HTMLButtonElementMethods for JSRef<'a, HTMLButtonElement> {
|
|||
}
|
||||
|
||||
fn FormTarget(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetFormTarget(&mut self, _formtarget: DOMString) -> ErrorResult {
|
||||
|
@ -135,7 +135,7 @@ impl<'a> HTMLButtonElementMethods for JSRef<'a, HTMLButtonElement> {
|
|||
}
|
||||
|
||||
fn Name(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetName(&mut self, _name: DOMString) -> ErrorResult {
|
||||
|
@ -143,7 +143,7 @@ impl<'a> HTMLButtonElementMethods for JSRef<'a, HTMLButtonElement> {
|
|||
}
|
||||
|
||||
fn Type(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetType(&mut self, _type: DOMString) -> ErrorResult {
|
||||
|
@ -151,7 +151,7 @@ impl<'a> HTMLButtonElementMethods for JSRef<'a, HTMLButtonElement> {
|
|||
}
|
||||
|
||||
fn Value(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetValue(&mut self, _value: DOMString) -> ErrorResult {
|
||||
|
@ -171,7 +171,7 @@ impl<'a> HTMLButtonElementMethods for JSRef<'a, HTMLButtonElement> {
|
|||
}
|
||||
|
||||
fn ValidationMessage(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetValidationMessage(&mut self, _message: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -47,7 +47,7 @@ pub trait HTMLDataElementMethods {
|
|||
|
||||
impl<'a> HTMLDataElementMethods for JSRef<'a, HTMLDataElement> {
|
||||
fn Value(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetValue(&mut self, _value: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -47,7 +47,7 @@ pub trait HTMLDivElementMethods {
|
|||
|
||||
impl<'a> HTMLDivElementMethods for JSRef<'a, HTMLDivElement> {
|
||||
fn Align(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAlign(&mut self, _align: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -57,7 +57,7 @@ impl<'a> HTMLDListElementMethods for JSRef<'a, HTMLDListElement> {
|
|||
}
|
||||
|
||||
fn Type(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetType(&mut self, _type: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -80,21 +80,21 @@ pub trait HTMLElementMethods {
|
|||
|
||||
impl<'a> HTMLElementMethods for JSRef<'a, HTMLElement> {
|
||||
fn Title(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetTitle(&mut self, _title: DOMString) {
|
||||
}
|
||||
|
||||
fn Lang(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetLang(&mut self, _lang: DOMString) {
|
||||
}
|
||||
|
||||
fn Dir(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetDir(&mut self, _dir: DOMString) -> ErrorResult {
|
||||
|
@ -137,7 +137,7 @@ impl<'a> HTMLElementMethods for JSRef<'a, HTMLElement> {
|
|||
}
|
||||
|
||||
fn AccessKey(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAccessKey(&self, _key: DOMString) -> ErrorResult {
|
||||
|
@ -145,7 +145,7 @@ impl<'a> HTMLElementMethods for JSRef<'a, HTMLElement> {
|
|||
}
|
||||
|
||||
fn AccessKeyLabel(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn Draggable(&self) -> bool {
|
||||
|
@ -157,7 +157,7 @@ impl<'a> HTMLElementMethods for JSRef<'a, HTMLElement> {
|
|||
}
|
||||
|
||||
fn ContentEditable(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetContentEditable(&mut self, _val: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -58,7 +58,7 @@ pub trait HTMLEmbedElementMethods {
|
|||
|
||||
impl<'a> HTMLEmbedElementMethods for JSRef<'a, HTMLEmbedElement> {
|
||||
fn Src(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetSrc(&mut self, _src: DOMString) -> ErrorResult {
|
||||
|
@ -66,7 +66,7 @@ impl<'a> HTMLEmbedElementMethods for JSRef<'a, HTMLEmbedElement> {
|
|||
}
|
||||
|
||||
fn Type(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetType(&mut self, _type: DOMString) -> ErrorResult {
|
||||
|
@ -74,7 +74,7 @@ impl<'a> HTMLEmbedElementMethods for JSRef<'a, HTMLEmbedElement> {
|
|||
}
|
||||
|
||||
fn Width(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetWidth(&mut self, _width: DOMString) -> ErrorResult {
|
||||
|
@ -82,7 +82,7 @@ impl<'a> HTMLEmbedElementMethods for JSRef<'a, HTMLEmbedElement> {
|
|||
}
|
||||
|
||||
fn Height(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetHeight(&mut self, _height: DOMString) -> ErrorResult {
|
||||
|
@ -90,7 +90,7 @@ impl<'a> HTMLEmbedElementMethods for JSRef<'a, HTMLEmbedElement> {
|
|||
}
|
||||
|
||||
fn Align(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAlign(&mut self, _type: DOMString) -> ErrorResult {
|
||||
|
@ -98,7 +98,7 @@ impl<'a> HTMLEmbedElementMethods for JSRef<'a, HTMLEmbedElement> {
|
|||
}
|
||||
|
||||
fn Name(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetName(&mut self, _type: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -72,7 +72,7 @@ impl<'a> HTMLFieldSetElementMethods for JSRef<'a, HTMLFieldSetElement> {
|
|||
}
|
||||
|
||||
fn Name(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetName(&mut self, _name: DOMString) -> ErrorResult {
|
||||
|
@ -80,7 +80,7 @@ impl<'a> HTMLFieldSetElementMethods for JSRef<'a, HTMLFieldSetElement> {
|
|||
}
|
||||
|
||||
fn Type(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
// http://www.whatwg.org/html/#dom-fieldset-elements
|
||||
|
@ -110,7 +110,7 @@ impl<'a> HTMLFieldSetElementMethods for JSRef<'a, HTMLFieldSetElement> {
|
|||
}
|
||||
|
||||
fn ValidationMessage(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn CheckValidity(&self) -> bool {
|
||||
|
|
|
@ -51,7 +51,7 @@ pub trait HTMLFontElementMethods {
|
|||
|
||||
impl<'a> HTMLFontElementMethods for JSRef<'a, HTMLFontElement> {
|
||||
fn Color(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetColor(&mut self, _color: DOMString) -> ErrorResult {
|
||||
|
@ -59,7 +59,7 @@ impl<'a> HTMLFontElementMethods for JSRef<'a, HTMLFontElement> {
|
|||
}
|
||||
|
||||
fn Face(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetFace(&mut self, _face: DOMString) -> ErrorResult {
|
||||
|
@ -67,7 +67,7 @@ impl<'a> HTMLFontElementMethods for JSRef<'a, HTMLFontElement> {
|
|||
}
|
||||
|
||||
fn Size(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetSize(&mut self, _size: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -70,7 +70,7 @@ pub trait HTMLFormElementMethods {
|
|||
|
||||
impl<'a> HTMLFormElementMethods for JSRef<'a, HTMLFormElement> {
|
||||
fn AcceptCharset(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAcceptCharset(&mut self, _accept_charset: DOMString) -> ErrorResult {
|
||||
|
@ -78,7 +78,7 @@ impl<'a> HTMLFormElementMethods for JSRef<'a, HTMLFormElement> {
|
|||
}
|
||||
|
||||
fn Action(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAction(&mut self, _action: DOMString) -> ErrorResult {
|
||||
|
@ -86,7 +86,7 @@ impl<'a> HTMLFormElementMethods for JSRef<'a, HTMLFormElement> {
|
|||
}
|
||||
|
||||
fn Autocomplete(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAutocomplete(&mut self, _autocomplete: DOMString) -> ErrorResult {
|
||||
|
@ -94,7 +94,7 @@ impl<'a> HTMLFormElementMethods for JSRef<'a, HTMLFormElement> {
|
|||
}
|
||||
|
||||
fn Enctype(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetEnctype(&mut self, _enctype: DOMString) -> ErrorResult {
|
||||
|
@ -102,7 +102,7 @@ impl<'a> HTMLFormElementMethods for JSRef<'a, HTMLFormElement> {
|
|||
}
|
||||
|
||||
fn Encoding(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetEncoding(&mut self, _encoding: DOMString) -> ErrorResult {
|
||||
|
@ -110,7 +110,7 @@ impl<'a> HTMLFormElementMethods for JSRef<'a, HTMLFormElement> {
|
|||
}
|
||||
|
||||
fn Method(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetMethod(&mut self, _method: DOMString) -> ErrorResult {
|
||||
|
@ -118,7 +118,7 @@ impl<'a> HTMLFormElementMethods for JSRef<'a, HTMLFormElement> {
|
|||
}
|
||||
|
||||
fn Name(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetName(&mut self, _name: DOMString) -> ErrorResult {
|
||||
|
@ -134,7 +134,7 @@ impl<'a> HTMLFormElementMethods for JSRef<'a, HTMLFormElement> {
|
|||
}
|
||||
|
||||
fn Target(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetTarget(&mut self, _target: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -64,7 +64,7 @@ pub trait HTMLFrameElementMethods {
|
|||
|
||||
impl<'a> HTMLFrameElementMethods for JSRef<'a, HTMLFrameElement> {
|
||||
fn Name(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetName(&mut self, _name: DOMString) -> ErrorResult {
|
||||
|
@ -72,7 +72,7 @@ impl<'a> HTMLFrameElementMethods for JSRef<'a, HTMLFrameElement> {
|
|||
}
|
||||
|
||||
fn Scrolling(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetScrolling(&mut self, _scrolling: DOMString) -> ErrorResult {
|
||||
|
@ -80,7 +80,7 @@ impl<'a> HTMLFrameElementMethods for JSRef<'a, HTMLFrameElement> {
|
|||
}
|
||||
|
||||
fn Src(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetSrc(&mut self, _src: DOMString) -> ErrorResult {
|
||||
|
@ -88,7 +88,7 @@ impl<'a> HTMLFrameElementMethods for JSRef<'a, HTMLFrameElement> {
|
|||
}
|
||||
|
||||
fn FrameBorder(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetFrameBorder(&mut self, _frameborder: DOMString) -> ErrorResult {
|
||||
|
@ -96,7 +96,7 @@ impl<'a> HTMLFrameElementMethods for JSRef<'a, HTMLFrameElement> {
|
|||
}
|
||||
|
||||
fn LongDesc(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetLongDesc(&mut self, _longdesc: DOMString) -> ErrorResult {
|
||||
|
@ -120,7 +120,7 @@ impl<'a> HTMLFrameElementMethods for JSRef<'a, HTMLFrameElement> {
|
|||
}
|
||||
|
||||
fn MarginHeight(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetMarginHeight(&mut self, _height: DOMString) -> ErrorResult {
|
||||
|
@ -128,7 +128,7 @@ impl<'a> HTMLFrameElementMethods for JSRef<'a, HTMLFrameElement> {
|
|||
}
|
||||
|
||||
fn MarginWidth(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetMarginWidth(&mut self, _height: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -49,7 +49,7 @@ pub trait HTMLFrameSetElementMethods {
|
|||
|
||||
impl<'a> HTMLFrameSetElementMethods for JSRef<'a, HTMLFrameSetElement> {
|
||||
fn Cols(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetCols(&mut self, _cols: DOMString) -> ErrorResult {
|
||||
|
@ -57,7 +57,7 @@ impl<'a> HTMLFrameSetElementMethods for JSRef<'a, HTMLFrameSetElement> {
|
|||
}
|
||||
|
||||
fn Rows(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetRows(&mut self, _rows: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -58,7 +58,7 @@ pub trait HTMLHeadingElementMethods {
|
|||
|
||||
impl<'a> HTMLHeadingElementMethods for JSRef<'a, HTMLHeadingElement> {
|
||||
fn Align(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAlign(&mut self, _align: DOMString) {
|
||||
|
|
|
@ -55,7 +55,7 @@ pub trait HTMLHRElementMethods {
|
|||
|
||||
impl<'a> HTMLHRElementMethods for JSRef<'a, HTMLHRElement> {
|
||||
fn Align(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAlign(&mut self, _align: DOMString) -> ErrorResult {
|
||||
|
@ -63,7 +63,7 @@ impl<'a> HTMLHRElementMethods for JSRef<'a, HTMLHRElement> {
|
|||
}
|
||||
|
||||
fn Color(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetColor(&mut self, _color: DOMString) -> ErrorResult {
|
||||
|
@ -79,7 +79,7 @@ impl<'a> HTMLHRElementMethods for JSRef<'a, HTMLHRElement> {
|
|||
}
|
||||
|
||||
fn Size(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetSize(&mut self, _size: DOMString) -> ErrorResult {
|
||||
|
@ -87,7 +87,7 @@ impl<'a> HTMLHRElementMethods for JSRef<'a, HTMLHRElement> {
|
|||
}
|
||||
|
||||
fn Width(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetWidth(&mut self, _width: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -47,7 +47,7 @@ pub trait HTMLHtmlElementMethods {
|
|||
|
||||
impl<'a> HTMLHtmlElementMethods for JSRef<'a, HTMLHtmlElement> {
|
||||
fn Version(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetVersion(&mut self, _version: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -119,7 +119,7 @@ pub trait HTMLIFrameElementMethods {
|
|||
|
||||
impl<'a> HTMLIFrameElementMethods for JSRef<'a, HTMLIFrameElement> {
|
||||
fn Src(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetSrc(&mut self, _src: DOMString) -> ErrorResult {
|
||||
|
@ -127,7 +127,7 @@ impl<'a> HTMLIFrameElementMethods for JSRef<'a, HTMLIFrameElement> {
|
|||
}
|
||||
|
||||
fn Srcdoc(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetSrcdoc(&mut self, _srcdoc: DOMString) -> ErrorResult {
|
||||
|
@ -135,7 +135,7 @@ impl<'a> HTMLIFrameElementMethods for JSRef<'a, HTMLIFrameElement> {
|
|||
}
|
||||
|
||||
fn Name(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetName(&mut self, _name: DOMString) -> ErrorResult {
|
||||
|
@ -161,7 +161,7 @@ impl<'a> HTMLIFrameElementMethods for JSRef<'a, HTMLIFrameElement> {
|
|||
}
|
||||
|
||||
fn Width(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetWidth(&mut self, _width: DOMString) -> ErrorResult {
|
||||
|
@ -169,7 +169,7 @@ impl<'a> HTMLIFrameElementMethods for JSRef<'a, HTMLIFrameElement> {
|
|||
}
|
||||
|
||||
fn Height(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetHeight(&mut self, _height: DOMString) -> ErrorResult {
|
||||
|
@ -185,7 +185,7 @@ impl<'a> HTMLIFrameElementMethods for JSRef<'a, HTMLIFrameElement> {
|
|||
}
|
||||
|
||||
fn Align(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAlign(&mut self, _align: DOMString) -> ErrorResult {
|
||||
|
@ -193,7 +193,7 @@ impl<'a> HTMLIFrameElementMethods for JSRef<'a, HTMLIFrameElement> {
|
|||
}
|
||||
|
||||
fn Scrolling(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetScrolling(&mut self, _scrolling: DOMString) -> ErrorResult {
|
||||
|
@ -201,7 +201,7 @@ impl<'a> HTMLIFrameElementMethods for JSRef<'a, HTMLIFrameElement> {
|
|||
}
|
||||
|
||||
fn FrameBorder(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetFrameBorder(&mut self, _frameborder: DOMString) -> ErrorResult {
|
||||
|
@ -209,7 +209,7 @@ impl<'a> HTMLIFrameElementMethods for JSRef<'a, HTMLIFrameElement> {
|
|||
}
|
||||
|
||||
fn LongDesc(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetLongDesc(&mut self, _longdesc: DOMString) -> ErrorResult {
|
||||
|
@ -217,7 +217,7 @@ impl<'a> HTMLIFrameElementMethods for JSRef<'a, HTMLIFrameElement> {
|
|||
}
|
||||
|
||||
fn MarginHeight(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetMarginHeight(&mut self, _marginheight: DOMString) -> ErrorResult {
|
||||
|
@ -225,7 +225,7 @@ impl<'a> HTMLIFrameElementMethods for JSRef<'a, HTMLIFrameElement> {
|
|||
}
|
||||
|
||||
fn MarginWidth(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetMarginWidth(&mut self, _marginwidth: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -145,7 +145,7 @@ impl<'a> HTMLImageElementMethods for JSRef<'a, HTMLImageElement> {
|
|||
}
|
||||
|
||||
fn CrossOrigin(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetCrossOrigin(&mut self, _cross_origin: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -123,7 +123,7 @@ pub trait HTMLInputElementMethods {
|
|||
|
||||
impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> {
|
||||
fn Accept(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAccept(&mut self, _accept: DOMString) -> ErrorResult {
|
||||
|
@ -131,7 +131,7 @@ impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> {
|
|||
}
|
||||
|
||||
fn Alt(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAlt(&mut self, _alt: DOMString) -> ErrorResult {
|
||||
|
@ -139,7 +139,7 @@ impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> {
|
|||
}
|
||||
|
||||
fn Autocomplete(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAutocomplete(&mut self, _autocomple: DOMString) -> ErrorResult {
|
||||
|
@ -178,7 +178,7 @@ impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> {
|
|||
}
|
||||
|
||||
fn FormAction(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetFormAction(&mut self, _form_action: DOMString) -> ErrorResult {
|
||||
|
@ -186,7 +186,7 @@ impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> {
|
|||
}
|
||||
|
||||
fn FormEnctype(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetFormEnctype(&mut self, _form_enctype: DOMString) -> ErrorResult {
|
||||
|
@ -194,7 +194,7 @@ impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> {
|
|||
}
|
||||
|
||||
fn FormMethod(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetFormMethod(&mut self, _form_method: DOMString) -> ErrorResult {
|
||||
|
@ -210,7 +210,7 @@ impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> {
|
|||
}
|
||||
|
||||
fn FormTarget(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetFormTarget(&mut self, _form_target: DOMString) -> ErrorResult {
|
||||
|
@ -233,7 +233,7 @@ impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> {
|
|||
}
|
||||
|
||||
fn InputMode(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetInputMode(&mut self, _input_mode: DOMString) -> ErrorResult {
|
||||
|
@ -241,7 +241,7 @@ impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> {
|
|||
}
|
||||
|
||||
fn Max(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetMax(&mut self, _max: DOMString) -> ErrorResult {
|
||||
|
@ -257,7 +257,7 @@ impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> {
|
|||
}
|
||||
|
||||
fn Min(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetMin(&mut self, _min: DOMString) -> ErrorResult {
|
||||
|
@ -273,7 +273,7 @@ impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> {
|
|||
}
|
||||
|
||||
fn Name(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetName(&mut self, _name: DOMString) -> ErrorResult {
|
||||
|
@ -281,7 +281,7 @@ impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> {
|
|||
}
|
||||
|
||||
fn Pattern(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetPattern(&mut self, _pattern: DOMString) -> ErrorResult {
|
||||
|
@ -289,7 +289,7 @@ impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> {
|
|||
}
|
||||
|
||||
fn Placeholder(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetPlaceholder(&mut self, _placeholder: DOMString) -> ErrorResult {
|
||||
|
@ -321,7 +321,7 @@ impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> {
|
|||
}
|
||||
|
||||
fn Src(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetSrc(&mut self, _src: DOMString) -> ErrorResult {
|
||||
|
@ -329,7 +329,7 @@ impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> {
|
|||
}
|
||||
|
||||
fn Step(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetStep(&mut self, _step: DOMString) -> ErrorResult {
|
||||
|
@ -337,7 +337,7 @@ impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> {
|
|||
}
|
||||
|
||||
fn Type(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetType(&mut self, _type: DOMString) -> ErrorResult {
|
||||
|
@ -345,7 +345,7 @@ impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> {
|
|||
}
|
||||
|
||||
fn DefaultValue(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetDefaultValue(&mut self, _default_value: DOMString) -> ErrorResult {
|
||||
|
@ -353,7 +353,7 @@ impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> {
|
|||
}
|
||||
|
||||
fn Value(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetValue(&mut self, _value: DOMString) -> ErrorResult {
|
||||
|
@ -375,7 +375,7 @@ impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> {
|
|||
}
|
||||
|
||||
fn GetValidationMessage(&self) -> Fallible<DOMString> {
|
||||
Ok(~"")
|
||||
Ok("".to_owned())
|
||||
}
|
||||
|
||||
fn CheckValidity(&self) -> bool {
|
||||
|
@ -405,7 +405,7 @@ impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> {
|
|||
}
|
||||
|
||||
fn GetSelectionDirection(&self) -> Fallible<DOMString> {
|
||||
Ok(~"")
|
||||
Ok("".to_owned())
|
||||
}
|
||||
|
||||
fn SetSelectionDirection(&mut self, _selection_direction: DOMString) -> ErrorResult {
|
||||
|
@ -413,7 +413,7 @@ impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> {
|
|||
}
|
||||
|
||||
fn Align(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAlign(&mut self, _align: DOMString) -> ErrorResult {
|
||||
|
@ -421,7 +421,7 @@ impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> {
|
|||
}
|
||||
|
||||
fn UseMap(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetUseMap(&mut self, _align: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -46,7 +46,7 @@ pub trait HTMLLabelElementMethods {
|
|||
|
||||
impl<'a> HTMLLabelElementMethods for JSRef<'a, HTMLLabelElement> {
|
||||
fn HtmlFor(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetHtmlFor(&mut self, _html_for: DOMString) {
|
||||
|
|
|
@ -47,7 +47,7 @@ pub trait HTMLLegendElementMethods {
|
|||
|
||||
impl<'a> HTMLLegendElementMethods for JSRef<'a, HTMLLegendElement> {
|
||||
fn Align(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAlign(&mut self, _align: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -57,7 +57,7 @@ impl<'a> HTMLLIElementMethods for JSRef<'a, HTMLLIElement> {
|
|||
}
|
||||
|
||||
fn Type(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetType(&mut self, _type: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -72,7 +72,7 @@ impl<'a> HTMLLinkElementMethods for JSRef<'a, HTMLLinkElement> {
|
|||
}
|
||||
|
||||
fn Href(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetHref(&mut self, _href: DOMString) -> ErrorResult {
|
||||
|
@ -80,7 +80,7 @@ impl<'a> HTMLLinkElementMethods for JSRef<'a, HTMLLinkElement> {
|
|||
}
|
||||
|
||||
fn CrossOrigin(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetCrossOrigin(&mut self, _cross_origin: DOMString) -> ErrorResult {
|
||||
|
@ -88,7 +88,7 @@ impl<'a> HTMLLinkElementMethods for JSRef<'a, HTMLLinkElement> {
|
|||
}
|
||||
|
||||
fn Rel(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetRel(&mut self, _rel: DOMString) -> ErrorResult {
|
||||
|
@ -96,7 +96,7 @@ impl<'a> HTMLLinkElementMethods for JSRef<'a, HTMLLinkElement> {
|
|||
}
|
||||
|
||||
fn Media(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetMedia(&mut self, _media: DOMString) -> ErrorResult {
|
||||
|
@ -104,7 +104,7 @@ impl<'a> HTMLLinkElementMethods for JSRef<'a, HTMLLinkElement> {
|
|||
}
|
||||
|
||||
fn Hreflang(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetHreflang(&mut self, _href: DOMString) -> ErrorResult {
|
||||
|
@ -112,7 +112,7 @@ impl<'a> HTMLLinkElementMethods for JSRef<'a, HTMLLinkElement> {
|
|||
}
|
||||
|
||||
fn Type(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetType(&mut self, _type: DOMString) -> ErrorResult {
|
||||
|
@ -120,7 +120,7 @@ impl<'a> HTMLLinkElementMethods for JSRef<'a, HTMLLinkElement> {
|
|||
}
|
||||
|
||||
fn Charset(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetCharset(&mut self, _charset: DOMString) -> ErrorResult {
|
||||
|
@ -128,7 +128,7 @@ impl<'a> HTMLLinkElementMethods for JSRef<'a, HTMLLinkElement> {
|
|||
}
|
||||
|
||||
fn Rev(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetRev(&mut self, _rev: DOMString) -> ErrorResult {
|
||||
|
@ -136,7 +136,7 @@ impl<'a> HTMLLinkElementMethods for JSRef<'a, HTMLLinkElement> {
|
|||
}
|
||||
|
||||
fn Target(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetTarget(&mut self, _target: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -49,7 +49,7 @@ pub trait HTMLMapElementMethods {
|
|||
|
||||
impl<'a> HTMLMapElementMethods for JSRef<'a, HTMLMapElement> {
|
||||
fn Name(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetName(&mut self, _name: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -74,7 +74,7 @@ pub trait HTMLMediaElementMethods {
|
|||
|
||||
impl<'a> HTMLMediaElementMethods for JSRef<'a, HTMLMediaElement> {
|
||||
fn Src(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetSrc(&mut self, _src: DOMString) -> ErrorResult {
|
||||
|
@ -82,11 +82,11 @@ impl<'a> HTMLMediaElementMethods for JSRef<'a, HTMLMediaElement> {
|
|||
}
|
||||
|
||||
fn CurrentSrc(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn CrossOrigin(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetCrossOrigin(&mut self, _cross_origin: DOMString) -> ErrorResult {
|
||||
|
@ -94,7 +94,7 @@ impl<'a> HTMLMediaElementMethods for JSRef<'a, HTMLMediaElement> {
|
|||
}
|
||||
|
||||
fn Preload(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetPreload(&mut self, _preload: DOMString) -> ErrorResult {
|
||||
|
@ -105,7 +105,7 @@ impl<'a> HTMLMediaElementMethods for JSRef<'a, HTMLMediaElement> {
|
|||
}
|
||||
|
||||
fn CanPlayType(&self, _type: DOMString) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn ReadyState(&self) -> u16 {
|
||||
|
|
|
@ -53,7 +53,7 @@ pub trait HTMLMetaElementMethods {
|
|||
|
||||
impl<'a> HTMLMetaElementMethods for JSRef<'a, HTMLMetaElement> {
|
||||
fn Name(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetName(&mut self, _name: DOMString) -> ErrorResult {
|
||||
|
@ -61,7 +61,7 @@ impl<'a> HTMLMetaElementMethods for JSRef<'a, HTMLMetaElement> {
|
|||
}
|
||||
|
||||
fn HttpEquiv(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetHttpEquiv(&mut self, _http_equiv: DOMString) -> ErrorResult {
|
||||
|
@ -69,7 +69,7 @@ impl<'a> HTMLMetaElementMethods for JSRef<'a, HTMLMetaElement> {
|
|||
}
|
||||
|
||||
fn Content(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetContent(&mut self, _content: DOMString) -> ErrorResult {
|
||||
|
@ -77,7 +77,7 @@ impl<'a> HTMLMetaElementMethods for JSRef<'a, HTMLMetaElement> {
|
|||
}
|
||||
|
||||
fn Scheme(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetScheme(&mut self, _scheme: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -49,7 +49,7 @@ pub trait HTMLModElementMethods {
|
|||
|
||||
impl<'a> HTMLModElementMethods for JSRef<'a, HTMLModElement> {
|
||||
fn Cite(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetCite(&mut self, _cite: DOMString) -> ErrorResult {
|
||||
|
@ -57,7 +57,7 @@ impl<'a> HTMLModElementMethods for JSRef<'a, HTMLModElement> {
|
|||
}
|
||||
|
||||
fn DateTime(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetDateTime(&mut self, _datetime: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -125,7 +125,7 @@ pub trait HTMLObjectElementMethods {
|
|||
|
||||
impl<'a> HTMLObjectElementMethods for JSRef<'a, HTMLObjectElement> {
|
||||
fn Data(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetData(&mut self, _data: DOMString) -> ErrorResult {
|
||||
|
@ -133,7 +133,7 @@ impl<'a> HTMLObjectElementMethods for JSRef<'a, HTMLObjectElement> {
|
|||
}
|
||||
|
||||
fn Type(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetType(&mut self, _type: DOMString) -> ErrorResult {
|
||||
|
@ -141,7 +141,7 @@ impl<'a> HTMLObjectElementMethods for JSRef<'a, HTMLObjectElement> {
|
|||
}
|
||||
|
||||
fn Name(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetName(&mut self, _name: DOMString) -> ErrorResult {
|
||||
|
@ -149,7 +149,7 @@ impl<'a> HTMLObjectElementMethods for JSRef<'a, HTMLObjectElement> {
|
|||
}
|
||||
|
||||
fn UseMap(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetUseMap(&mut self, _use_map: DOMString) -> ErrorResult {
|
||||
|
@ -161,7 +161,7 @@ impl<'a> HTMLObjectElementMethods for JSRef<'a, HTMLObjectElement> {
|
|||
}
|
||||
|
||||
fn Width(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetWidth(&mut self, _width: DOMString) -> ErrorResult {
|
||||
|
@ -169,7 +169,7 @@ impl<'a> HTMLObjectElementMethods for JSRef<'a, HTMLObjectElement> {
|
|||
}
|
||||
|
||||
fn Height(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetHeight(&mut self, _height: DOMString) -> ErrorResult {
|
||||
|
@ -194,7 +194,7 @@ impl<'a> HTMLObjectElementMethods for JSRef<'a, HTMLObjectElement> {
|
|||
}
|
||||
|
||||
fn ValidationMessage(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn CheckValidity(&self) -> bool {
|
||||
|
@ -205,7 +205,7 @@ impl<'a> HTMLObjectElementMethods for JSRef<'a, HTMLObjectElement> {
|
|||
}
|
||||
|
||||
fn Align(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAlign(&mut self, _align: DOMString) -> ErrorResult {
|
||||
|
@ -213,7 +213,7 @@ impl<'a> HTMLObjectElementMethods for JSRef<'a, HTMLObjectElement> {
|
|||
}
|
||||
|
||||
fn Archive(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetArchive(&mut self, _archive: DOMString) -> ErrorResult {
|
||||
|
@ -221,7 +221,7 @@ impl<'a> HTMLObjectElementMethods for JSRef<'a, HTMLObjectElement> {
|
|||
}
|
||||
|
||||
fn Code(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetCode(&mut self, _code: DOMString) -> ErrorResult {
|
||||
|
@ -245,7 +245,7 @@ impl<'a> HTMLObjectElementMethods for JSRef<'a, HTMLObjectElement> {
|
|||
}
|
||||
|
||||
fn Standby(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetStandby(&mut self, _standby: DOMString) -> ErrorResult {
|
||||
|
@ -261,7 +261,7 @@ impl<'a> HTMLObjectElementMethods for JSRef<'a, HTMLObjectElement> {
|
|||
}
|
||||
|
||||
fn CodeBase(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetCodeBase(&mut self, _codebase: DOMString) -> ErrorResult {
|
||||
|
@ -269,7 +269,7 @@ impl<'a> HTMLObjectElementMethods for JSRef<'a, HTMLObjectElement> {
|
|||
}
|
||||
|
||||
fn CodeType(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetCodeType(&mut self, _codetype: DOMString) -> ErrorResult {
|
||||
|
@ -277,7 +277,7 @@ impl<'a> HTMLObjectElementMethods for JSRef<'a, HTMLObjectElement> {
|
|||
}
|
||||
|
||||
fn Border(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetBorder(&mut self, _border: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -69,7 +69,7 @@ impl<'a> HTMLOListElementMethods for JSRef<'a, HTMLOListElement> {
|
|||
}
|
||||
|
||||
fn Type(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetType(&mut self, _type: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -57,7 +57,7 @@ impl<'a> HTMLOptGroupElementMethods for JSRef<'a, HTMLOptGroupElement> {
|
|||
}
|
||||
|
||||
fn Label(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetLabel(&mut self, _label: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -72,7 +72,7 @@ impl<'a> HTMLOptionElementMethods for JSRef<'a, HTMLOptionElement> {
|
|||
}
|
||||
|
||||
fn Label(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetLabel(&mut self, _label: DOMString) -> ErrorResult {
|
||||
|
@ -96,7 +96,7 @@ impl<'a> HTMLOptionElementMethods for JSRef<'a, HTMLOptionElement> {
|
|||
}
|
||||
|
||||
fn Value(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetValue(&mut self, _value: DOMString) -> ErrorResult {
|
||||
|
@ -104,7 +104,7 @@ impl<'a> HTMLOptionElementMethods for JSRef<'a, HTMLOptionElement> {
|
|||
}
|
||||
|
||||
fn Text(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetText(&mut self, _text: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -66,7 +66,7 @@ impl<'a> HTMLOutputElementMethods for JSRef<'a, HTMLOutputElement> {
|
|||
}
|
||||
|
||||
fn Name(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetName(&mut self, _name: DOMString) -> ErrorResult {
|
||||
|
@ -74,11 +74,11 @@ impl<'a> HTMLOutputElementMethods for JSRef<'a, HTMLOutputElement> {
|
|||
}
|
||||
|
||||
fn Type(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn DefaultValue(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetDefaultValue(&mut self, _value: DOMString) -> ErrorResult {
|
||||
|
@ -86,7 +86,7 @@ impl<'a> HTMLOutputElementMethods for JSRef<'a, HTMLOutputElement> {
|
|||
}
|
||||
|
||||
fn Value(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetValue(&mut self, _value: DOMString) -> ErrorResult {
|
||||
|
@ -106,7 +106,7 @@ impl<'a> HTMLOutputElementMethods for JSRef<'a, HTMLOutputElement> {
|
|||
}
|
||||
|
||||
fn ValidationMessage(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetValidationMessage(&mut self, _message: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -47,7 +47,7 @@ pub trait HTMLParagraphElementMethods {
|
|||
|
||||
impl<'a> HTMLParagraphElementMethods for JSRef<'a, HTMLParagraphElement> {
|
||||
fn Align(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAlign(&mut self, _align: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -53,7 +53,7 @@ pub trait HTMLParamElementMethods {
|
|||
|
||||
impl<'a> HTMLParamElementMethods for JSRef<'a, HTMLParamElement> {
|
||||
fn Name(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetName(&mut self, _name: DOMString) -> ErrorResult {
|
||||
|
@ -61,7 +61,7 @@ impl<'a> HTMLParamElementMethods for JSRef<'a, HTMLParamElement> {
|
|||
}
|
||||
|
||||
fn Value(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetValue(&mut self, _value: DOMString) -> ErrorResult {
|
||||
|
@ -69,7 +69,7 @@ impl<'a> HTMLParamElementMethods for JSRef<'a, HTMLParamElement> {
|
|||
}
|
||||
|
||||
fn Type(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetType(&mut self, _type: DOMString) -> ErrorResult {
|
||||
|
@ -77,7 +77,7 @@ impl<'a> HTMLParamElementMethods for JSRef<'a, HTMLParamElement> {
|
|||
}
|
||||
|
||||
fn ValueType(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetValueType(&mut self, _value_type: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -47,7 +47,7 @@ pub trait HTMLQuoteElementMethods {
|
|||
|
||||
impl<'a> HTMLQuoteElementMethods for JSRef<'a, HTMLQuoteElement> {
|
||||
fn Cite(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetCite(&self, _cite: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -73,7 +73,7 @@ impl<'a> HTMLScriptElementMethods for JSRef<'a, HTMLScriptElement> {
|
|||
}
|
||||
|
||||
fn Type(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetType(&mut self, _type: DOMString) -> ErrorResult {
|
||||
|
@ -81,7 +81,7 @@ impl<'a> HTMLScriptElementMethods for JSRef<'a, HTMLScriptElement> {
|
|||
}
|
||||
|
||||
fn Charset(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetCharset(&mut self, _charset: DOMString) -> ErrorResult {
|
||||
|
@ -105,7 +105,7 @@ impl<'a> HTMLScriptElementMethods for JSRef<'a, HTMLScriptElement> {
|
|||
}
|
||||
|
||||
fn CrossOrigin(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetCrossOrigin(&mut self, _cross_origin: DOMString) -> ErrorResult {
|
||||
|
@ -113,7 +113,7 @@ impl<'a> HTMLScriptElementMethods for JSRef<'a, HTMLScriptElement> {
|
|||
}
|
||||
|
||||
fn Text(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetText(&mut self, _text: DOMString) -> ErrorResult {
|
||||
|
@ -121,7 +121,7 @@ impl<'a> HTMLScriptElementMethods for JSRef<'a, HTMLScriptElement> {
|
|||
}
|
||||
|
||||
fn Event(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetEvent(&mut self, _event: DOMString) -> ErrorResult {
|
||||
|
@ -129,7 +129,7 @@ impl<'a> HTMLScriptElementMethods for JSRef<'a, HTMLScriptElement> {
|
|||
}
|
||||
|
||||
fn HtmlFor(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetHtmlFor(&mut self, _html_for: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -111,7 +111,7 @@ impl<'a> HTMLSelectElementMethods for JSRef<'a, HTMLSelectElement> {
|
|||
}
|
||||
|
||||
fn Name(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetName(&mut self, _name: DOMString) -> ErrorResult {
|
||||
|
@ -135,7 +135,7 @@ impl<'a> HTMLSelectElementMethods for JSRef<'a, HTMLSelectElement> {
|
|||
}
|
||||
|
||||
fn Type(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn Length(&self) -> u32 {
|
||||
|
@ -177,7 +177,7 @@ impl<'a> HTMLSelectElementMethods for JSRef<'a, HTMLSelectElement> {
|
|||
}
|
||||
|
||||
fn Value(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetValue(&mut self, _value: DOMString) {
|
||||
|
@ -196,7 +196,7 @@ impl<'a> HTMLSelectElementMethods for JSRef<'a, HTMLSelectElement> {
|
|||
}
|
||||
|
||||
fn ValidationMessage(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetValidationMessage(&mut self, _message: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -20,7 +20,7 @@ use dom::processinginstruction::ProcessingInstruction;
|
|||
use dom::text::Text;
|
||||
|
||||
pub fn serialize(iterator: &mut NodeIterator) -> ~str {
|
||||
let mut html = ~"";
|
||||
let mut html = "".to_owned();
|
||||
let mut open_elements: Vec<~str> = vec!();
|
||||
|
||||
for node in *iterator {
|
||||
|
@ -51,7 +51,7 @@ pub fn serialize(iterator: &mut NodeIterator) -> ~str {
|
|||
serialize_processing_instruction(processing_instruction)
|
||||
}
|
||||
DocumentFragmentNodeTypeId => {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
DocumentNodeTypeId => {
|
||||
fail!("It shouldn't be possible to serialize a document node")
|
||||
|
|
|
@ -51,7 +51,7 @@ pub trait HTMLSourceElementMethods {
|
|||
|
||||
impl<'a> HTMLSourceElementMethods for JSRef<'a, HTMLSourceElement> {
|
||||
fn Src(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetSrc(&mut self, _src: DOMString) -> ErrorResult {
|
||||
|
@ -59,7 +59,7 @@ impl<'a> HTMLSourceElementMethods for JSRef<'a, HTMLSourceElement> {
|
|||
}
|
||||
|
||||
fn Type(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetType(&mut self, _type: DOMString) -> ErrorResult {
|
||||
|
@ -67,7 +67,7 @@ impl<'a> HTMLSourceElementMethods for JSRef<'a, HTMLSourceElement> {
|
|||
}
|
||||
|
||||
fn Media(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetMedia(&mut self, _media: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -63,7 +63,7 @@ impl<'a> HTMLStyleElementMethods for JSRef<'a, HTMLStyleElement> {
|
|||
}
|
||||
|
||||
fn Media(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetMedia(&mut self, _media: DOMString) -> ErrorResult {
|
||||
|
@ -71,7 +71,7 @@ impl<'a> HTMLStyleElementMethods for JSRef<'a, HTMLStyleElement> {
|
|||
}
|
||||
|
||||
fn Type(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetType(&mut self, _type: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -47,7 +47,7 @@ pub trait HTMLTableCaptionElementMethods {
|
|||
|
||||
impl<'a> HTMLTableCaptionElementMethods for JSRef<'a, HTMLTableCaptionElement> {
|
||||
fn Align(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAlign(&mut self, _align: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -86,7 +86,7 @@ impl<'a> HTMLTableCellElementMethods for JSRef<'a, HTMLTableCellElement> {
|
|||
}
|
||||
|
||||
fn Headers(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetHeaders(&self, _headers: DOMString) -> ErrorResult {
|
||||
|
@ -102,7 +102,7 @@ impl<'a> HTMLTableCellElementMethods for JSRef<'a, HTMLTableCellElement> {
|
|||
}
|
||||
|
||||
fn Abbr(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAbbr(&self, _abbr: DOMString) -> ErrorResult {
|
||||
|
@ -110,7 +110,7 @@ impl<'a> HTMLTableCellElementMethods for JSRef<'a, HTMLTableCellElement> {
|
|||
}
|
||||
|
||||
fn Scope(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetScope(&self, _abbr: DOMString) -> ErrorResult {
|
||||
|
@ -118,7 +118,7 @@ impl<'a> HTMLTableCellElementMethods for JSRef<'a, HTMLTableCellElement> {
|
|||
}
|
||||
|
||||
fn Align(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAlign(&self, _align: DOMString) -> ErrorResult {
|
||||
|
@ -126,7 +126,7 @@ impl<'a> HTMLTableCellElementMethods for JSRef<'a, HTMLTableCellElement> {
|
|||
}
|
||||
|
||||
fn Axis(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAxis(&self, _axis: DOMString) -> ErrorResult {
|
||||
|
@ -134,7 +134,7 @@ impl<'a> HTMLTableCellElementMethods for JSRef<'a, HTMLTableCellElement> {
|
|||
}
|
||||
|
||||
fn Height(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetHeight(&self, _height: DOMString) -> ErrorResult {
|
||||
|
@ -142,7 +142,7 @@ impl<'a> HTMLTableCellElementMethods for JSRef<'a, HTMLTableCellElement> {
|
|||
}
|
||||
|
||||
fn Width(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetWidth(&self, _width: DOMString) -> ErrorResult {
|
||||
|
@ -150,7 +150,7 @@ impl<'a> HTMLTableCellElementMethods for JSRef<'a, HTMLTableCellElement> {
|
|||
}
|
||||
|
||||
fn Ch(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetCh(&self, _ch: DOMString) -> ErrorResult {
|
||||
|
@ -158,7 +158,7 @@ impl<'a> HTMLTableCellElementMethods for JSRef<'a, HTMLTableCellElement> {
|
|||
}
|
||||
|
||||
fn ChOff(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetChOff(&self, _ch_off: DOMString) -> ErrorResult {
|
||||
|
@ -174,7 +174,7 @@ impl<'a> HTMLTableCellElementMethods for JSRef<'a, HTMLTableCellElement> {
|
|||
}
|
||||
|
||||
fn VAlign(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetVAlign(&self, _valign: DOMString) -> ErrorResult {
|
||||
|
@ -182,7 +182,7 @@ impl<'a> HTMLTableCellElementMethods for JSRef<'a, HTMLTableCellElement> {
|
|||
}
|
||||
|
||||
fn BgColor(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetBgColor(&self, _bg_color: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -65,7 +65,7 @@ impl<'a> HTMLTableColElementMethods for JSRef<'a, HTMLTableColElement> {
|
|||
}
|
||||
|
||||
fn Align(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAlign(&mut self, _align: DOMString) -> ErrorResult {
|
||||
|
@ -73,7 +73,7 @@ impl<'a> HTMLTableColElementMethods for JSRef<'a, HTMLTableColElement> {
|
|||
}
|
||||
|
||||
fn Ch(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetCh(&mut self, _ch: DOMString) -> ErrorResult {
|
||||
|
@ -81,7 +81,7 @@ impl<'a> HTMLTableColElementMethods for JSRef<'a, HTMLTableColElement> {
|
|||
}
|
||||
|
||||
fn ChOff(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetChOff(&mut self, _ch_off: DOMString) -> ErrorResult {
|
||||
|
@ -89,7 +89,7 @@ impl<'a> HTMLTableColElementMethods for JSRef<'a, HTMLTableColElement> {
|
|||
}
|
||||
|
||||
fn VAlign(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetVAlign(&mut self, _v_align: DOMString) -> ErrorResult {
|
||||
|
@ -97,7 +97,7 @@ impl<'a> HTMLTableColElementMethods for JSRef<'a, HTMLTableColElement> {
|
|||
}
|
||||
|
||||
fn Width(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetWidth(&mut self, _width: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -93,7 +93,7 @@ impl<'a> HTMLTableElementMethods for JSRef<'a, HTMLTableElement> {
|
|||
}
|
||||
|
||||
fn Align(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAlign(&self, _align: DOMString) -> ErrorResult {
|
||||
|
@ -101,7 +101,7 @@ impl<'a> HTMLTableElementMethods for JSRef<'a, HTMLTableElement> {
|
|||
}
|
||||
|
||||
fn Border(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetBorder(&self, _border: DOMString) -> ErrorResult {
|
||||
|
@ -109,7 +109,7 @@ impl<'a> HTMLTableElementMethods for JSRef<'a, HTMLTableElement> {
|
|||
}
|
||||
|
||||
fn Frame(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetFrame(&self, _frame: DOMString) -> ErrorResult {
|
||||
|
@ -117,7 +117,7 @@ impl<'a> HTMLTableElementMethods for JSRef<'a, HTMLTableElement> {
|
|||
}
|
||||
|
||||
fn Rules(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetRules(&self, _rules: DOMString) -> ErrorResult {
|
||||
|
@ -125,7 +125,7 @@ impl<'a> HTMLTableElementMethods for JSRef<'a, HTMLTableElement> {
|
|||
}
|
||||
|
||||
fn Summary(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetSummary(&self, _summary: DOMString) -> ErrorResult {
|
||||
|
@ -133,7 +133,7 @@ impl<'a> HTMLTableElementMethods for JSRef<'a, HTMLTableElement> {
|
|||
}
|
||||
|
||||
fn Width(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetWidth(&self, _width: DOMString) -> ErrorResult {
|
||||
|
@ -141,7 +141,7 @@ impl<'a> HTMLTableElementMethods for JSRef<'a, HTMLTableElement> {
|
|||
}
|
||||
|
||||
fn BgColor(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetBgColor(&self, _bg_color: DOMString) -> ErrorResult {
|
||||
|
@ -149,7 +149,7 @@ impl<'a> HTMLTableElementMethods for JSRef<'a, HTMLTableElement> {
|
|||
}
|
||||
|
||||
fn CellPadding(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetCellPadding(&self, _cell_padding: DOMString) -> ErrorResult {
|
||||
|
@ -157,7 +157,7 @@ impl<'a> HTMLTableElementMethods for JSRef<'a, HTMLTableElement> {
|
|||
}
|
||||
|
||||
fn CellSpacing(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetCellSpacing(&self, _cell_spacing: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -80,7 +80,7 @@ impl<'a> HTMLTableRowElementMethods for JSRef<'a, HTMLTableRowElement> {
|
|||
}
|
||||
|
||||
fn Align(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAlign(&self, _align: DOMString) -> ErrorResult {
|
||||
|
@ -88,7 +88,7 @@ impl<'a> HTMLTableRowElementMethods for JSRef<'a, HTMLTableRowElement> {
|
|||
}
|
||||
|
||||
fn Ch(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetCh(&self, _ch: DOMString) -> ErrorResult {
|
||||
|
@ -96,7 +96,7 @@ impl<'a> HTMLTableRowElementMethods for JSRef<'a, HTMLTableRowElement> {
|
|||
}
|
||||
|
||||
fn ChOff(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetChOff(&self, _ch_off: DOMString) -> ErrorResult {
|
||||
|
@ -104,7 +104,7 @@ impl<'a> HTMLTableRowElementMethods for JSRef<'a, HTMLTableRowElement> {
|
|||
}
|
||||
|
||||
fn VAlign(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetVAlign(&self, _v_align: DOMString) -> ErrorResult {
|
||||
|
@ -112,7 +112,7 @@ impl<'a> HTMLTableRowElementMethods for JSRef<'a, HTMLTableRowElement> {
|
|||
}
|
||||
|
||||
fn BgColor(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetBgColor(&self, _bg_color: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -58,7 +58,7 @@ impl<'a> HTMLTableSectionElementMethods for JSRef<'a, HTMLTableSectionElement> {
|
|||
}
|
||||
|
||||
fn Align(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAlign(&mut self, _align: DOMString) -> ErrorResult {
|
||||
|
@ -66,7 +66,7 @@ impl<'a> HTMLTableSectionElementMethods for JSRef<'a, HTMLTableSectionElement> {
|
|||
}
|
||||
|
||||
fn Ch(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetCh(&mut self, _ch: DOMString) -> ErrorResult {
|
||||
|
@ -74,7 +74,7 @@ impl<'a> HTMLTableSectionElementMethods for JSRef<'a, HTMLTableSectionElement> {
|
|||
}
|
||||
|
||||
fn ChOff(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetChOff(&mut self, _ch_off: DOMString) -> ErrorResult {
|
||||
|
@ -82,7 +82,7 @@ impl<'a> HTMLTableSectionElementMethods for JSRef<'a, HTMLTableSectionElement> {
|
|||
}
|
||||
|
||||
fn VAlign(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetVAlign(&mut self, _v_align: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -118,7 +118,7 @@ impl<'a> HTMLTextAreaElementMethods for JSRef<'a, HTMLTextAreaElement> {
|
|||
}
|
||||
|
||||
fn Name(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetName(&mut self, _name: DOMString) -> ErrorResult {
|
||||
|
@ -126,7 +126,7 @@ impl<'a> HTMLTextAreaElementMethods for JSRef<'a, HTMLTextAreaElement> {
|
|||
}
|
||||
|
||||
fn Placeholder(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetPlaceholder(&mut self, _placeholder: DOMString) -> ErrorResult {
|
||||
|
@ -158,7 +158,7 @@ impl<'a> HTMLTextAreaElementMethods for JSRef<'a, HTMLTextAreaElement> {
|
|||
}
|
||||
|
||||
fn Wrap(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetWrap(&mut self, _wrap: DOMString) -> ErrorResult {
|
||||
|
@ -166,14 +166,14 @@ impl<'a> HTMLTextAreaElementMethods for JSRef<'a, HTMLTextAreaElement> {
|
|||
}
|
||||
|
||||
fn Type(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetType(&mut self, _type: DOMString) {
|
||||
}
|
||||
|
||||
fn DefaultValue(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetDefaultValue(&mut self, _default_value: DOMString) -> ErrorResult {
|
||||
|
@ -181,7 +181,7 @@ impl<'a> HTMLTextAreaElementMethods for JSRef<'a, HTMLTextAreaElement> {
|
|||
}
|
||||
|
||||
fn Value(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetValue(&mut self, _value: DOMString) {
|
||||
|
@ -204,7 +204,7 @@ impl<'a> HTMLTextAreaElementMethods for JSRef<'a, HTMLTextAreaElement> {
|
|||
}
|
||||
|
||||
fn ValidationMessage(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn CheckValidity(&self) -> bool {
|
||||
|
@ -234,7 +234,7 @@ impl<'a> HTMLTextAreaElementMethods for JSRef<'a, HTMLTextAreaElement> {
|
|||
}
|
||||
|
||||
fn GetSelectionDirection(&self) -> Fallible<DOMString> {
|
||||
Ok(~"")
|
||||
Ok("".to_owned())
|
||||
}
|
||||
|
||||
fn SetSelectionDirection(&self, _selection_direction: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -47,7 +47,7 @@ pub trait HTMLTimeElementMethods {
|
|||
|
||||
impl<'a> HTMLTimeElementMethods for JSRef<'a, HTMLTimeElement> {
|
||||
fn DateTime(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetDateTime(&mut self, _dateTime: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -47,7 +47,7 @@ pub trait HTMLTitleElementMethods {
|
|||
|
||||
impl<'a> HTMLTitleElementMethods for JSRef<'a, HTMLTitleElement> {
|
||||
fn Text(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetText(&mut self, _text: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -56,7 +56,7 @@ pub trait HTMLTrackElementMethods {
|
|||
|
||||
impl<'a> HTMLTrackElementMethods for JSRef<'a, HTMLTrackElement> {
|
||||
fn Kind(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetKind(&mut self, _kind: DOMString) -> ErrorResult {
|
||||
|
@ -64,7 +64,7 @@ impl<'a> HTMLTrackElementMethods for JSRef<'a, HTMLTrackElement> {
|
|||
}
|
||||
|
||||
fn Src(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetSrc(&mut self, _src: DOMString) -> ErrorResult {
|
||||
|
@ -72,7 +72,7 @@ impl<'a> HTMLTrackElementMethods for JSRef<'a, HTMLTrackElement> {
|
|||
}
|
||||
|
||||
fn Srclang(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetSrclang(&mut self, _srclang: DOMString) -> ErrorResult {
|
||||
|
@ -80,7 +80,7 @@ impl<'a> HTMLTrackElementMethods for JSRef<'a, HTMLTrackElement> {
|
|||
}
|
||||
|
||||
fn Label(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetLabel(&mut self, _label: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -57,7 +57,7 @@ impl<'a> HTMLUListElementMethods for JSRef<'a, HTMLUListElement> {
|
|||
}
|
||||
|
||||
fn Type(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetType(&mut self, _type: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -77,7 +77,7 @@ impl<'a> HTMLVideoElementMethods for JSRef<'a, HTMLVideoElement> {
|
|||
}
|
||||
|
||||
fn Poster(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetPoster(&mut self, _poster: DOMString) -> ErrorResult {
|
||||
|
|
|
@ -85,11 +85,11 @@ impl<'a> LocationMethods for JSRef<'a, Location> {
|
|||
}
|
||||
|
||||
fn Origin(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn Protocol(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetProtocol(&self, _protocol: DOMString) {
|
||||
|
@ -97,7 +97,7 @@ impl<'a> LocationMethods for JSRef<'a, Location> {
|
|||
}
|
||||
|
||||
fn Username(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetUsername(&self, _username: DOMString) {
|
||||
|
@ -105,7 +105,7 @@ impl<'a> LocationMethods for JSRef<'a, Location> {
|
|||
}
|
||||
|
||||
fn Password(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetPassword(&self, _password: DOMString) {
|
||||
|
@ -113,7 +113,7 @@ impl<'a> LocationMethods for JSRef<'a, Location> {
|
|||
}
|
||||
|
||||
fn Host(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetHost(&self, _host: DOMString) {
|
||||
|
@ -121,7 +121,7 @@ impl<'a> LocationMethods for JSRef<'a, Location> {
|
|||
}
|
||||
|
||||
fn Hostname(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetHostname(&self, _hostname: DOMString) {
|
||||
|
@ -129,7 +129,7 @@ impl<'a> LocationMethods for JSRef<'a, Location> {
|
|||
}
|
||||
|
||||
fn Port(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetPort(&self, _port: DOMString) {
|
||||
|
@ -137,7 +137,7 @@ impl<'a> LocationMethods for JSRef<'a, Location> {
|
|||
}
|
||||
|
||||
fn Pathname(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetPathname(&self, _pathname: DOMString) {
|
||||
|
@ -145,7 +145,7 @@ impl<'a> LocationMethods for JSRef<'a, Location> {
|
|||
}
|
||||
|
||||
fn Search(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetSearch(&self, _search: DOMString) {
|
||||
|
@ -153,7 +153,7 @@ impl<'a> LocationMethods for JSRef<'a, Location> {
|
|||
}
|
||||
|
||||
fn Hash(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetHash(&self, _hash: DOMString) {
|
||||
|
|
|
@ -53,11 +53,11 @@ impl<'a> NavigatorMethods for JSRef<'a, Navigator> {
|
|||
}
|
||||
|
||||
fn Vendor(&self) -> DOMString {
|
||||
~"" // Like Gecko
|
||||
"".to_owned() // Like Gecko
|
||||
}
|
||||
|
||||
fn VendorSub(&self) -> DOMString {
|
||||
~"" // Like Gecko
|
||||
"".to_owned() // Like Gecko
|
||||
}
|
||||
|
||||
fn Product(&self) -> DOMString {
|
||||
|
@ -65,7 +65,7 @@ impl<'a> NavigatorMethods for JSRef<'a, Navigator> {
|
|||
}
|
||||
|
||||
fn ProductSub(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn CookieEnabled(&self) -> bool {
|
||||
|
@ -73,7 +73,7 @@ impl<'a> NavigatorMethods for JSRef<'a, Navigator> {
|
|||
}
|
||||
|
||||
fn GetBuildID(&self) -> Fallible<DOMString> {
|
||||
Ok(~"")
|
||||
Ok("".to_owned())
|
||||
}
|
||||
|
||||
fn JavaEnabled(&self) -> Fallible<bool> {
|
||||
|
@ -93,15 +93,15 @@ impl<'a> NavigatorMethods for JSRef<'a, Navigator> {
|
|||
}
|
||||
|
||||
fn GetAppVersion(&self) -> Fallible<DOMString> {
|
||||
Ok(~"")
|
||||
Ok("".to_owned())
|
||||
}
|
||||
|
||||
fn GetPlatform(&self) -> Fallible<DOMString> {
|
||||
Ok(~"")
|
||||
Ok("".to_owned())
|
||||
}
|
||||
|
||||
fn GetUserAgent(&self) -> Fallible<DOMString> {
|
||||
Ok(~"")
|
||||
Ok("".to_owned())
|
||||
}
|
||||
|
||||
fn GetLanguage(&self) -> Option<DOMString> {
|
||||
|
|
|
@ -435,7 +435,7 @@ impl<'a> NodeHelpers for JSRef<'a, Node> {
|
|||
|
||||
/// Dumps the node tree, for debugging, with indentation.
|
||||
fn dump_indent(&self, indent: uint) {
|
||||
let mut s = ~"";
|
||||
let mut s = "".to_owned();
|
||||
for _ in range(0, indent) {
|
||||
s.push_str(" ");
|
||||
}
|
||||
|
@ -1510,7 +1510,7 @@ impl<'a> NodeMethods for JSRef<'a, Node> {
|
|||
match self.type_id {
|
||||
DocumentFragmentNodeTypeId |
|
||||
ElementNodeTypeId(..) => {
|
||||
let mut content = ~"";
|
||||
let mut content = "".to_owned();
|
||||
for node in self.traverse_preorder() {
|
||||
if node.is_text() {
|
||||
let text: &JSRef<Text> = TextCast::to_ref(&node).unwrap();
|
||||
|
|
|
@ -225,7 +225,7 @@ impl<'a> TestBindingMethods for JSRef<'a, TestBinding> {
|
|||
fn SetFloatAttribute(&self, _: f32) {}
|
||||
fn DoubleAttribute(&self) -> f64 { 0. }
|
||||
fn SetDoubleAttribute(&self, _: f64) {}
|
||||
fn StringAttribute(&self) -> DOMString { ~"" }
|
||||
fn StringAttribute(&self) -> DOMString { "".to_owned() }
|
||||
fn SetStringAttribute(&self, _: DOMString) {}
|
||||
fn ByteStringAttribute(&self) -> ByteString { ByteString::new(vec!()) }
|
||||
fn SetByteStringAttribute(&self, _: ByteString) {}
|
||||
|
@ -263,7 +263,7 @@ impl<'a> TestBindingMethods for JSRef<'a, TestBinding> {
|
|||
fn SetDoubleAttributeNullable(&self, _: Option<f64>) {}
|
||||
fn GetByteStringAttributeNullable(&self) -> Option<ByteString> { Some(ByteString::new(vec!())) }
|
||||
fn SetByteStringAttributeNullable(&self, _: Option<ByteString>) {}
|
||||
fn GetStringAttributeNullable(&self) -> Option<DOMString> { Some(~"") }
|
||||
fn GetStringAttributeNullable(&self) -> Option<DOMString> { Some("".to_owned()) }
|
||||
fn SetStringAttributeNullable(&self, _: Option<DOMString>) {}
|
||||
fn GetEnumAttributeNullable(&self) -> Option<TestEnum> { Some(_empty) }
|
||||
fn GetInterfaceAttributeNullable(&self) -> Option<Temporary<Blob>> {
|
||||
|
|
|
@ -57,6 +57,6 @@ impl<'a> TextMethods for JSRef<'a, Text> {
|
|||
}
|
||||
|
||||
fn GetWholeText(&self) -> Fallible<DOMString> {
|
||||
Ok(~"")
|
||||
Ok("".to_owned())
|
||||
}
|
||||
}
|
||||
|
|
|
@ -150,14 +150,14 @@ impl<'a> WindowMethods for JSRef<'a, Window> {
|
|||
}
|
||||
|
||||
fn Name(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetName(&self, _name: DOMString) {
|
||||
}
|
||||
|
||||
fn Status(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetStatus(&self, _status: DOMString) {
|
||||
|
|
|
@ -48,11 +48,11 @@ impl XMLHttpRequest {
|
|||
timeout: 0u32,
|
||||
with_credentials: false,
|
||||
upload: None,
|
||||
response_url: ~"",
|
||||
response_url: "".to_owned(),
|
||||
status: 0,
|
||||
status_text: ByteString::new(vec!()),
|
||||
response_type: _empty,
|
||||
response_text: ~"",
|
||||
response_text: "".to_owned(),
|
||||
response_xml: None
|
||||
};
|
||||
xhr.upload.assign(Some(XMLHttpRequestUpload::new(owner)));
|
||||
|
|
|
@ -10,10 +10,10 @@ pub type StaticCharVec = &'static [char];
|
|||
pub type StaticStringVec = &'static [&'static str];
|
||||
|
||||
pub fn null_str_as_empty(s: &Option<DOMString>) -> DOMString {
|
||||
// We don't use map_default because it would allocate ~"" even for Some.
|
||||
// We don't use map_default because it would allocate "".to_owned() even for Some.
|
||||
match *s {
|
||||
Some(ref s) => s.clone(),
|
||||
None => ~""
|
||||
None => "".to_owned()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче