servo/components/script
Jesse Kipp 4f0ffbd1f6 Issue 13363 - Step 1.2 of compiling event handler
When compiling event handlers, check whether scripting is enabled
and early return None/null if not.

https://html.spec.whatwg.org/multipage/
webappapis.html#getting-the-current-value-of-the-event-handler

Issue 13363 - Fix spec for disabled scripting

The original spec for this PR was bad because it depended on the
DOM without scripting enabled to use Javascript to signal the test's
failure, so it could never fail.

Use an onerror handler on `window` where scripting is enabled, and
use an invalid string of JavaScript for the handler, to detect
whether or not the event handler is *really* being compiled or not.

Condense tests into a single HTML file

Yup, didn't even realize I could do that at the time.

Remove an unnecessary test
2016-10-20 11:08:44 -04:00
..
docs
dom Issue 13363 - Step 1.2 of compiling event handler 2016-10-20 11:08:44 -04:00
task_source Make TaskSource::queue take a &GlobalScope 2016-10-06 21:35:52 +02:00
bluetooth_blacklist.rs Add WebBluetooth Blacklist support 2016-05-31 17:05:45 +02:00
body.rs Rename Reflectable::global_scope to global 2016-10-06 21:36:41 +02:00
build.rs Native MSVC windows build, convert to cmake 2016-08-17 09:50:51 -04:00
Cargo.toml Update to Rust 1.14.0-nightly (19ac57926 2016-10-08) 2016-10-09 18:53:47 +02:00
clipboard_provider.rs Remove ConstellationChan. 2016-05-19 17:13:44 +02:00
CMakeLists.txt Fix doc build by resurrecting generation of supported DOM APIs.h 2016-09-24 15:06:06 -04:00
devtools.rs Setting a devtools timeline marker may fail, due to pipeline lookup failure. 2016-10-12 12:56:23 -05:00
document_loader.rs Remove DocumentLoader::pipeline. 2016-10-13 11:10:39 +02:00
fetch.rs Remove intrinsic Root::r() 2016-10-11 19:44:32 +02:00
layout_wrapper.rs Auto merge of #13691 - servo:mem-replace, r=emilio 2016-10-12 04:49:22 -05:00
lib.rs Merge script::parse and script::dom::servoparser 2016-10-11 16:42:01 +02:00
mem.rs
network_listener.rs Reorder use statements 2016-09-09 04:55:19 +02:00
origin.rs Reorder use statements 2016-09-09 04:55:19 +02:00
script_runtime.rs Remove GlobalRoot and GlobalRef 2016-10-06 21:36:00 +02:00
script_thread.rs Auto merge of #13741 - servo:fetch-doc-unused, r=Manishearth 2016-10-13 09:55:00 -05:00
serviceworker_manager.rs Remove ScopeThings::pipeline_id 2016-10-04 14:05:28 +02:00
textinput.rs Implement minlength for text inputs 2016-09-21 07:54:39 -05:00
timers.rs Rename Reflectable::global_scope to global 2016-10-06 21:36:41 +02:00
unpremultiplytable.rs
webdriver_handlers.rs Move JS evaluation functions to GlobalScope 2016-10-06 21:35:50 +02:00