Implementing Element in web-sys (#508)

This commit is contained in:
Jonathan Kingston
2018-07-19 16:46:26 +01:00
committed by Alex Crichton
parent e99c6b7c61
commit 4013fd90a7
4 changed files with 99 additions and 2 deletions

View File

@ -176,8 +176,9 @@ impl<'a> FirstPassRecord<'a> {
webidl::ast::TypeKind::DOMString if pos == TypePosition::Argument => {
shared_ref(ident_ty(raw_ident("str")))
}
// `DOMString` is not supported yet in other positions.
webidl::ast::TypeKind::DOMString => return None,
webidl::ast::TypeKind::DOMString => {
ident_ty(raw_ident("String"))
},
// `ByteString -> `&[u8]` for arguments
webidl::ast::TypeKind::ByteString if pos == TypePosition::Argument => {