mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-07-31 20:11:55 +00:00
Testing web-sys for input, heading and title elements. (#596)
This commit is contained in:
committed by
Alex Crichton
parent
05f3eec76d
commit
26a3e57536
@@ -46,6 +46,18 @@ export function new_style() {
|
||||
return document.createElement("style");
|
||||
}
|
||||
|
||||
export function new_input() {
|
||||
return document.createElement("input");
|
||||
}
|
||||
|
||||
export function new_title() {
|
||||
return document.createElement("title");
|
||||
}
|
||||
|
||||
export function new_heading() {
|
||||
return document.createElement("h1");
|
||||
}
|
||||
|
||||
export function new_xpath_result() {
|
||||
let xmlDoc = new DOMParser().parseFromString("<root><value>tomato</value></root>", "application/xml");
|
||||
let xpathResult = xmlDoc.evaluate("/root//value", xmlDoc, null, XPathResult.ANY_TYPE, null);
|
||||
|
Reference in New Issue
Block a user