(_vm: &VirtualMachine)
| 178 | |
| 179 | #[pyattr] |
| 180 | fn document(_vm: &VirtualMachine) -> PyRef<Document> { |
| 181 | PyRef::new_ref( |
| 182 | Document { |
| 183 | doc: window().document().expect("Document missing from window"), |
| 184 | }, |
| 185 | Document::make_static_type(), |
| 186 | None, |
| 187 | ) |
| 188 | } |
| 189 | |
| 190 | #[pyattr] |
| 191 | #[pyclass(module = "browser", name)] |